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;publicclassTrackingHeadRotationExample:MonoBehaviour{voidOnEnable() { // subscribing to the actionJMRTrackerManager.OnHeadRotation+= onHeadRotationLocal; }voidOnDisable() { // unsubscribing to the actionJMRTrackerManager.OnHeadRotation-= onHeadRotationLocal; } //this action will be called per frame automatically // get rotation when rotation updatingpublicvoidonHeadRotationLocal(Quaternion rotation) {Quaternion Rot = rotation; }}