Action will be called only when itβs subscribed to a method. Action must be subscribed to the method with a matching signature.
usingJMRSDK;usingUnityEngine;publicclassTrackingHeadPositionExample:MonoBehaviour{voidOnEnable() { // subscribing to the actionJMRTrackerManager.OnHeadPosition+= onHeadPositionLocal; }voidOnDisable() { // unsubscribing to the actionJMRTrackerManager.OnHeadPosition-= onHeadPositionLocal; } //this action will be called per frame automatically // get Position when position updating publicvoidonHeadPositionLocal(Vector3 position) {Vector3 Pos = position; }}