static StackObject *CreateAnimationClipPlayable_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationClip clip = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.Experimental.Director.PlayableGraph graph = (UnityEngine.Experimental.Director.PlayableGraph) typeof(UnityEngine.Experimental.Director.PlayableGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = UnityEngine.Experimental.Director.AnimationPlayableGraphExtensions.CreateAnimationClipPlayable(graph, clip); return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
static int __CreateInstance(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (LuaAPI.lua_gettop(L) == 1) { UnityEngine.AnimationClip __cl_gen_ret = new UnityEngine.AnimationClip(); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.AnimationClip constructor!")); }
static StackObject *get_Item_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 2); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationClip clip = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimatorOverrideController instance_of_this_method; instance_of_this_method = (UnityEngine.AnimatorOverrideController) typeof(UnityEngine.AnimatorOverrideController).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = instance_of_this_method[clip]; return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
int UnityEngineAnimationClip_m_AddEvent(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); { UnityEngine.AnimationEvent _evt = (UnityEngine.AnimationEvent)translator.GetObject(L, 2, typeof(UnityEngine.AnimationEvent)); gen_to_be_invoked.AddEvent(_evt); return(0); } }
int UnityEngineAnimationClip_m_SampleAnimation(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); { UnityEngine.GameObject _go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); float _time = (float)LuaAPI.lua_tonumber(L, 3); gen_to_be_invoked.SampleAnimation(_go, _time); return(0); } }
public static UnityEngine.AnimationState PrepareAnimation(UnityEngine.GameObject obj, string animName) { UnityEngine.AnimationState state = null; UnityEngine.Animation animation = obj.GetComponent <UnityEngine.Animation>(); if (null != animation && !string.IsNullOrEmpty(animName)) { state = animation[animName]; if (null == state) { UnityEngine.AnimationClip clip = GetSharedResource("Animations/" + animName) as UnityEngine.AnimationClip; if (null != clip) { animation.AddClip(clip, animName); state = animation[animName]; } } } return(state); }
/** FindAnimationClip */ private static void FindAnimationClip(Fee.File.Path a_path, System.Collections.Generic.List <FindItem> a_out_list) { UnityEngine.Object[] t_object_list = Fee.EditorTool.AssetTool.LoadAllAsset(a_path); foreach (UnityEngine.Object t_object in t_object_list) { UnityEngine.AnimationClip t_animationclip = t_object as UnityEngine.AnimationClip; if (t_animationclip != null) { if (System.Text.RegularExpressions.Regex.IsMatch(t_animationclip.name, "^.*__preview__.*$") == true) { //UnityEngine.Debug.Log("ignore : " + t_animationclip.name); } else { a_out_list.Add(new FindItem(a_path, t_animationclip)); } } } }
static int _m_ClearCurves(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AnimationClip __cl_gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); try { { __cl_gen_to_be_invoked.ClearCurves( ); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_EnsureQuaternionContinuity(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); { gen_to_be_invoked.EnsureQuaternionContinuity( ); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
int UnityEngineAnimationClip_m_SetCurve(RealStatePtr L, int gen_param_count) { ObjectTranslator translator = this; UnityEngine.AnimationClip gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); { string _relativePath = LuaAPI.lua_tostring(L, 2); System.Type _type = (System.Type)translator.GetObject(L, 3, typeof(System.Type)); string _propertyName = LuaAPI.lua_tostring(L, 4); UnityEngine.AnimationCurve _curve = (UnityEngine.AnimationCurve)translator.GetObject(L, 5, typeof(UnityEngine.AnimationCurve)); gen_to_be_invoked.SetCurve(_relativePath, _type, _propertyName, _curve); return(0); } }
public static int __CSIndexer(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); if (translator.Assignable <UnityEngine.AnimatorOverrideController>(L, 1) && translator.Assignable <UnityEngine.AnimationClip>(L, 2)) { UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); UnityEngine.AnimationClip index = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); LuaAPI.lua_pushboolean(L, true); translator.Push(L, gen_to_be_invoked[index]); return(2); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } LuaAPI.lua_pushboolean(L, false); return(1); }
static StackObject *set_Item_3(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationClip value = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String name = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.AnimatorOverrideController instance_of_this_method; instance_of_this_method = (UnityEngine.AnimatorOverrideController) typeof(UnityEngine.AnimatorOverrideController).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method[name] = value; return(__ret); }
static int _m_AddEvent(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AnimationClip __cl_gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); try { { UnityEngine.AnimationEvent evt = (UnityEngine.AnimationEvent)translator.GetObject(L, 2, typeof(UnityEngine.AnimationEvent)); __cl_gen_to_be_invoked.AddEvent(evt); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static StackObject *set_Item_0(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationClip @value = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @key = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip> instance_of_this_method = (System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip>) typeof(System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method[key] = value; return(__ret); }
static int _m_SampleAnimation(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AnimationClip __cl_gen_to_be_invoked = (UnityEngine.AnimationClip)translator.FastGetCSObj(L, 1); try { { UnityEngine.GameObject go = (UnityEngine.GameObject)translator.GetObject(L, 2, typeof(UnityEngine.GameObject)); float time = (float)LuaAPI.lua_tonumber(L, 3); __cl_gen_to_be_invoked.SampleAnimation(go, time); return(0); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_set_Item(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.AnimatorOverrideController gen_to_be_invoked = (UnityEngine.AnimatorOverrideController)translator.FastGetCSObj(L, 1); { string key = LuaAPI.lua_tostring(L, 2); UnityEngine.AnimationClip gen_value = (UnityEngine.AnimationClip)translator.GetObject(L, 3, typeof(UnityEngine.AnimationClip)); gen_to_be_invoked[key] = gen_value; return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } }
static int _m_GetClip(RealStatePtr L) { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Animation __cl_gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); try { { string name = LuaAPI.lua_tostring(L, 2); UnityEngine.AnimationClip __cl_gen_ret = __cl_gen_to_be_invoked.GetClip(name); translator.Push(L, __cl_gen_ret); return(1); } } catch (System.Exception __gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e)); } }
static int _m_RemoveClip(RealStatePtr L) { try { ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L); UnityEngine.Animation gen_to_be_invoked = (UnityEngine.Animation)translator.FastGetCSObj(L, 1); int gen_param_count = LuaAPI.lua_gettop(L); if (gen_param_count == 2 && translator.Assignable <UnityEngine.AnimationClip>(L, 2)) { UnityEngine.AnimationClip _clip = (UnityEngine.AnimationClip)translator.GetObject(L, 2, typeof(UnityEngine.AnimationClip)); gen_to_be_invoked.RemoveClip(_clip); return(0); } if (gen_param_count == 2 && (LuaAPI.lua_isnil(L, 2) || LuaAPI.lua_type(L, 2) == LuaTypes.LUA_TSTRING)) { string _clipName = LuaAPI.lua_tostring(L, 2); gen_to_be_invoked.RemoveClip(_clipName); return(0); } } catch (System.Exception gen_e) { return(LuaAPI.luaL_error(L, "c# exception:" + gen_e)); } return(LuaAPI.luaL_error(L, "invalid arguments to UnityEngine.Animation.RemoveClip!")); }
public void PlayAnimation(UnityEngine.AnimationClip animation) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
public void SampleAnimation(UnityEngine.AnimationClip animation, System.Single time) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
public static UnityEditor.AnimationClipCurveData[] GetAllCurves(UnityEngine.AnimationClip clip, System.Boolean includeCurveData) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
/** [SimpleAnimation]モーション。追加。 */ public void AddMotion_SimpleAnimation(string a_state_name, UnityEngine.AnimationClip a_animetion_clip) { this.controller_simpleanimationtion.AddMotion(a_state_name, a_animetion_clip); }
public static UnityEngine.AnimationCurve GetEditorCurve(UnityEngine.AnimationClip clip, System.String relativePath, System.Type type, System.String propertyName) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
static StackObject *PlayClip_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); ptr_of_this_method = ILIntepreter.GetObjectAndResolveReference(ptr_of_this_method); UnityEngine.Experimental.Director.PlayableGraph graph = (UnityEngine.Experimental.Director.PlayableGraph) typeof(UnityEngine.Experimental.Director.PlayableGraph).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationClip clip = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); UnityEngine.Animator animator = (UnityEngine.Animator) typeof(UnityEngine.Animator).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); var result_of_this_method = UnityEngine.Experimental.Director.AnimationPlayableUtilities.PlayClip(animator, clip, out graph); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = *(StackObject **)&ptr_of_this_method->Value; object ___obj = graph; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) { ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; } __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = graph; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, graph); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if (___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = graph; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, graph); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.Experimental.Director.PlayableGraph[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = graph; } break; } return(ILIntepreter.PushObject(__ret, __mStack, result_of_this_method)); }
public static void SetEditorCurve(UnityEngine.AnimationClip clip, System.String relativePath, System.Type type, System.String propertyName, UnityEngine.AnimationCurve curve) { }
public static UnityEngine.AnimationEvent[] GetAnimationEvents(UnityEngine.AnimationClip clip) { throw new NotImplementedException("This function was automatically generated by Mockery and has no real implementation yet."); }
public static void SetAnimationEvents(UnityEngine.AnimationClip clip, UnityEngine.AnimationEvent[] events) { }
static StackObject *TryGetValue_1(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj) { ILRuntime.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain; StackObject *ptr_of_this_method; StackObject *__ret = ILIntepreter.Minus(__esp, 3); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); UnityEngine.AnimationClip @value = (UnityEngine.AnimationClip) typeof(UnityEngine.AnimationClip).CheckCLRTypes(__intp.RetriveObject(ptr_of_this_method, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); System.String @key = (System.String) typeof(System.String).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip> instance_of_this_method = (System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip>) typeof(System.Collections.Generic.Dictionary <System.String, UnityEngine.AnimationClip>).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); var result_of_this_method = instance_of_this_method.TryGetValue(@key, out @value); ptr_of_this_method = ILIntepreter.Minus(__esp, 1); switch (ptr_of_this_method->ObjectType) { case ObjectTypes.StackObjectReference: { var ___dst = ILIntepreter.ResolveReference(ptr_of_this_method); object ___obj = @value; if (___dst->ObjectType >= ObjectTypes.Object) { if (___obj is CrossBindingAdaptorType) { ___obj = ((CrossBindingAdaptorType)___obj).ILInstance; } __mStack[___dst->Value] = ___obj; } else { ILIntepreter.UnboxObject(___dst, ___obj, __mStack, __domain); } } break; case ObjectTypes.FieldReference: { var ___obj = __mStack[ptr_of_this_method->Value]; if (___obj is ILTypeInstance) { ((ILTypeInstance)___obj)[ptr_of_this_method->ValueLow] = @value; } else { var ___type = __domain.GetType(___obj.GetType()) as CLRType; ___type.SetFieldValue(ptr_of_this_method->ValueLow, ref ___obj, @value); } } break; case ObjectTypes.StaticFieldReference: { var ___type = __domain.GetType(ptr_of_this_method->Value); if (___type is ILType) { ((ILType)___type).StaticInstance[ptr_of_this_method->ValueLow] = @value; } else { ((CLRType)___type).SetStaticFieldValue(ptr_of_this_method->ValueLow, @value); } } break; case ObjectTypes.ArrayReference: { var instance_of_arrayReference = __mStack[ptr_of_this_method->Value] as UnityEngine.AnimationClip[]; instance_of_arrayReference[ptr_of_this_method->ValueLow] = @value; } break; } __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 3); __intp.Free(ptr_of_this_method); __ret->ObjectType = ObjectTypes.Integer; __ret->Value = result_of_this_method ? 1 : 0; return(__ret + 1); }
public UnityEditorInternalAnimationWindowCurve(UnityEngine.AnimationClip clip, UnityEditor.EditorCurveBinding binding, System.Type valueType) { m_instance = Activator.CreateInstance(UnityTypes.UnityEditorInternal_AnimationWindowCurve, new object[] { clip, binding, valueType }); }