public override void ProcessFrame(Playable playable, FrameData info, object playerData) { #if UNITY_EDITOR if (EditorApplication.isPlaying) #endif { AlembicWaitForEndOfFrame.Add(this); } }
static AlembicWaitForEndOfFrame GetInstance() { if (s_instance == null) { s_instance = GameObject.FindObjectOfType <AlembicWaitForEndOfFrame>(); if (s_instance == null) { var go = new GameObject(); go.name = "AlembicRecorderHelper"; s_instance = go.AddComponent <AlembicWaitForEndOfFrame>(); } } return(s_instance); }