I'm having trouble, there's an error and I can't find it

  • Device type & OS version: Android
  • Host machine & OS version: Windows 11
  • ARDK version: 2.5
  • Unity version: Unity 2021.3.22f1

Description of the issue:

I’m having trouble, there’s an error and I can’t find it
I am experiencing problems when following videos on the YouTube channel on the “HandPositionSolver” script.

this is the error message:
Assets\Script\HandPositionSolver.cs(12,30): error CS0246: The type or namespace name ‘AllandTrackingManager’ could not be found (are you missing a using directive or an assembly reference?)

what do I have to do?

code:

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using ARDK.Extensions;
using Niantic.ARDK.AR.Awareness;

public class HandPositionSolver : MonoBehaviour
{
[SerializeField] private AllandTrackingManager handTrackingManager;
[SerializeField] private Camera aRCamera;
[SerializeField] private float minHandConfidence = 0.85f;

private Vector3 handPosition;

public Vector3 HandPosition { get => handPosition; }

// Start is called before the first frame update
void Start()
{
    handTrackingManager.HandTrackingUpdated += HandTrackingUpdated;
}

private void OnDestroy()
{
    handTrackingManager.HandTrackingUpdated -= HandTrackingUpdated;
}

private void HandTrackingUpdated(HumanTrackingArgs handData)
{
    var detections = handData.TrackingData?.AlignedDetections;
    if (detections == null)
    {
        return;
    }

    foreach (var detection in detections)
    {
        if (detection.Confidence < minHandConfidence)
        {
            return;
        }

        Vector3 detectionSize = new Vector3(detection.Rect.width, detection.Rect.height, 0);
        float depthEstimation = 0.2f + Mathf.Abs(1 - detectionSize.magnitude);

        handPosition = aRCamera.ViewportToWorldPoint(new Vector3(detection.Rect.center.x, 1 - detection.Rect.center.y, depthEstimation));
    }
}

}