Using the Transform property from a SharedVariable<MonoBehaviour> as a SharedTransform reference

PJTTG

New member
Hey guys! If I derive from a SharedVariable<SomeMonoBehaviour> , is there any way for me to get the Transform from this SharedVariable<> and use it for SharedTransform references within the Behavior Tree? Or do I have to treat the SharedMonoBehaviour and SharedTransform (which belong to the same GameObject) as two different variables and just keep them synchronized?
 
No, in that case you'll need to maintain two separate variables. When initializing the SharedVariables the tree will not look inside MonoBehaviours for a variable.
 
Top