Beispiel #1
0
 void Update()
 {
     // [RMS] this can be null if we created a GO by copying an fGO using Unity functions (eg Object.Instantiate).
     // The GO wil be created, and the PreRenderBehavior script will be copied, however there
     // is no ParentFGO. We need a deep-copy of FGOs to fix this!
     //
     // Currently only happens when using UnityWrapperSO? so not a crisis.
     if (ParentFGO != null)
     {
         ParentFGO.PreRender();
     }
 }