how to Indicates whether the user is currently gazing at an object in the new holotoolkit?

linoysarlinoysar
edited September 2018 in General

I have a project with an old holotoolkit that I used in GazeManager.Instance.IsGazingAtObject
I saw that this is Obsolete("Use FocusManager.TryGetFocusDetails")
But I can not figure out how to use it, I'll be happy to get help
That's what happened in my old project (its not working):
 if (GazeManager.Instance.IsGazingAtObject &&GazeManager.Instance.HitInfo.collider! = null)
        {
            GameObject obj = GazeManager.Instance.HitInfo.collider.gameObject;
            UpdateFocusObject (obj);

        }

Sign In or Register to comment.