Globals.instance

<aside> ⛔ Custom scripts are not supported in ‘Bundle’ export, as they must be compiled and added to the main MOR project. Scripts included in the MOR folder with the ArtStaging scene work in the main project.

</aside>

Access Player info in the MOR

(GameObject) Globals.player.Head - game object which has the main dimensions camera

(MORHand) Globals.player.leftHand - component on local player Left hand object.

(MORHand) Globals.player.rightHand - component on local players Right hand object.

Server Info

(double )MORRealtime.servertime - When in the MOR and online will send a time which should be consistent among all players in that room.

Global shader variable:

float _ServerTime; - shader variable you can add to _Time[] to use as a synced time inside a shader. Set by 'GlobalShaderVariables' on the 'Globals' prefab.

Script Performance tips: