public static void GatherAllProperties <T>(UnityEngine.Timeline.IPropertyCollector driver, T component) where T : Component { var so = new SerializedObject(component); var iterator = so.GetIterator(); while (iterator.NextVisible(true)) { if (iterator.hasVisibleChildren) { continue; } driver.AddFromName <T>(component.gameObject, iterator.propertyPath); } }
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)); } }