tryfindexpressxrrigreference - eisclimber/ExPresS-XR GitHub Wiki

RuntimeUtils.TryFindExPresSXRRigReference(ExPresSXRRig)

Method in RuntimeUtils

Summary

Finds the first ExPresSXRRig in the scene (if exists). Returns true if the rig was found and set to the out parameter and false otherwise.

Be aware that the rig must be tagged as "Player"! !!This operation is expensive, call it sparingly and rather use direct References to the rig whenever possible!!

public static bool TryFindExPresSXRRigReference(out ExPresSXRRig rig)

Parameters

Name Description
ExPresSXR.Rig.ExPresSXRRig rig The rig or null.

Returns

If a rig was found

⚠️ **GitHub.com Fallback** ⚠️