private void UpdatePreCull(Camera cam) { if (lastFrame == Time.frameCount) { return; } lastFrame = Time.frameCount; InputTracking.GetNodeStates(states); for (int i = 0; i < states.Count; i++) { //Debug.Log("A thing: " + states[i].nodeType + " and " + InputTracking.GetNodeName(states[i].uniqueID)); if (states[i].nodeType != hand) { continue; } nodeState = states[i]; var pose = input.GetPose(nodeState); transform.localPosition = pose.pos; transform.localRotation = pose.rot; if (visualization) { visualization.SetActive(Tracked = nodeState.tracked); } } }