public void GatherProperties(PlayableDirector director, IPropertyCollector driver) { if (!(director == null)) { if (!ControlPlayableAsset.s_ProcessedDirectors.Contains(director)) { ControlPlayableAsset.s_ProcessedDirectors.Add(director); GameObject gameObject = this.sourceGameObject.Resolve(director); if (gameObject != null) { if (this.updateParticle) { foreach (ParticleSystem particleSystem in this.GetComponent <ParticleSystem>(gameObject)) { driver.AddFromName <ParticleSystem>(particleSystem.gameObject, "randomSeed"); driver.AddFromName <ParticleSystem>(particleSystem.gameObject, "autoRandomSeed"); } } if (this.active) { driver.AddFromName(gameObject, "m_IsActive"); } if (this.updateITimeControl) { foreach (MonoBehaviour monoBehaviour in ControlPlayableAsset.GetControlableScripts(gameObject)) { IPropertyPreview propertyPreview = monoBehaviour as IPropertyPreview; if (propertyPreview != null) { propertyPreview.GatherProperties(director, driver); } else { driver.AddFromComponent(monoBehaviour.gameObject, monoBehaviour); } } } if (this.updateDirector) { foreach (PlayableDirector playableDirector in this.GetComponent <PlayableDirector>(gameObject)) { if (!(playableDirector == null)) { TimelineAsset timelineAsset = playableDirector.playableAsset as TimelineAsset; if (!(timelineAsset == null)) { timelineAsset.GatherProperties(playableDirector, driver); } } } } } ControlPlayableAsset.s_ProcessedDirectors.Remove(director); } } }
static int GatherProperties(IntPtr L) { try { ToLua.CheckArgsCount(L, 3); UnityEngine.Timeline.TimelineAsset obj = (UnityEngine.Timeline.TimelineAsset)ToLua.CheckObject <UnityEngine.Timeline.TimelineAsset>(L, 1); UnityEngine.Playables.PlayableDirector arg0 = (UnityEngine.Playables.PlayableDirector)ToLua.CheckObject <UnityEngine.Playables.PlayableDirector>(L, 2); UnityEngine.Timeline.IPropertyCollector arg1 = (UnityEngine.Timeline.IPropertyCollector)ToLua.CheckObject <UnityEngine.Timeline.IPropertyCollector>(L, 3); obj.GatherProperties(arg0, arg1); return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e)); } }