/// <summary> /// Create new layer with specified AnimationBlendMode /// </summary> /// <param name="blendMode">AnimationBlendMode</param> /// <param name="sync"> sync layer </param> /// <returns>New create and regitered AnimationLayer</returns> public AnimationLayer Create(UnityEngine.AnimationBlendMode blendMode) { AnimationLayer layer = new AnimationLayer(Layers.Count, blendMode); Layers.Add(layer); return(layer); }
static int IntToEnum(IntPtr L) { int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.AnimationBlendMode o = (UnityEngine.AnimationBlendMode)arg0; ToLua.Push(L, o); return(1); }
static int IntToEnum(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.AnimationBlendMode.IntToEnum"); #endif int arg0 = (int)LuaDLL.lua_tonumber(L, 1); UnityEngine.AnimationBlendMode o = (UnityEngine.AnimationBlendMode)arg0; ToLua.Push(L, o); return(1); }
static int QPYX_set_blendMode_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.AnimationState QPYX_obj_YXQP = (UnityEngine.AnimationState)QPYX_o_YXQP; UnityEngine.AnimationBlendMode QPYX_arg0_YXQP = (UnityEngine.AnimationBlendMode)ToLua.CheckObject(L_YXQP, 2, typeof(UnityEngine.AnimationBlendMode)); QPYX_obj_YXQP.blendMode = QPYX_arg0_YXQP; return(0); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index blendMode on a nil value")); } }
static int QPYX_get_blendMode_YXQP(IntPtr L_YXQP) { object QPYX_o_YXQP = null; try { QPYX_o_YXQP = ToLua.ToObject(L_YXQP, 1); UnityEngine.AnimationState QPYX_obj_YXQP = (UnityEngine.AnimationState)QPYX_o_YXQP; UnityEngine.AnimationBlendMode QPYX_ret_YXQP = QPYX_obj_YXQP.blendMode; ToLua.Push(L_YXQP, QPYX_ret_YXQP); return(1); } catch (Exception QPYX_e_YXQP) { return(LuaDLL.toluaL_exception(L_YXQP, QPYX_e_YXQP, QPYX_o_YXQP, "attempt to index blendMode on a nil value")); } }
static int set_blendMode(IntPtr L) { UnityEngine.AnimationState obj = (UnityEngine.AnimationState)ToLua.ToObject(L, 1); UnityEngine.AnimationBlendMode arg0 = (UnityEngine.AnimationBlendMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationBlendMode)); try { obj.blendMode = arg0; } catch (Exception e) { return(LuaDLL.luaL_error(L, obj == null ? "attempt to index blendMode on a nil value" : e.Message)); } return(0); }
static int set_blendMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o; UnityEngine.AnimationBlendMode arg0 = (UnityEngine.AnimationBlendMode)ToLua.CheckObject(L, 2, TypeTraits <UnityEngine.AnimationBlendMode> .type); obj.blendMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value")); } }
static int get_blendMode(IntPtr L) { object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o; UnityEngine.AnimationBlendMode ret = obj.blendMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value")); } }
static StackObject *set_blendMode_24(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.AnimationBlendMode value = (UnityEngine.AnimationBlendMode) typeof(UnityEngine.AnimationBlendMode).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); ptr_of_this_method = ILIntepreter.Minus(__esp, 2); UnityEngine.AnimationState instance_of_this_method; instance_of_this_method = (UnityEngine.AnimationState) typeof(UnityEngine.AnimationState).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack)); __intp.Free(ptr_of_this_method); instance_of_this_method.blendMode = value; return(__ret); }
static int set_blendMode(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.AnimationState.blendMode"); #endif object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o; UnityEngine.AnimationBlendMode arg0 = (UnityEngine.AnimationBlendMode)ToLua.CheckObject(L, 2, typeof(UnityEngine.AnimationBlendMode)); obj.blendMode = arg0; return(0); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value")); } }
static int get_blendMode(IntPtr L) { #if UNITY_EDITOR ToluaProfiler.AddCallRecord("UnityEngine.AnimationState.blendMode"); #endif object o = null; try { o = ToLua.ToObject(L, 1); UnityEngine.AnimationState obj = (UnityEngine.AnimationState)o; UnityEngine.AnimationBlendMode ret = obj.blendMode; ToLua.Push(L, ret); return(1); } catch (Exception e) { return(LuaDLL.toluaL_exception(L, e, o, "attempt to index blendMode on a nil value")); } }
static int QPYX_IntToEnum_YXQP(IntPtr L_YXQP) { int QPYX_arg0_YXQP = (int)LuaDLL.lua_tonumber(L_YXQP, 1); UnityEngine.AnimationBlendMode QPYX_o_YXQP = (UnityEngine.AnimationBlendMode)QPYX_arg0_YXQP; ToLua.Push(L_YXQP, QPYX_o_YXQP); return(1); }
static void QPYX_Push_YXQP(IntPtr L_YXQP, UnityEngine.AnimationBlendMode arg_YXQP) { ToLua.Push(L_YXQP, arg_YXQP); }
static void Push(IntPtr L, UnityEngine.AnimationBlendMode arg) { ToLua.Push(L, arg); }
/// <summary> /// Create an instance of AnimationLayer /// </summary> /// <param name="layerIndex">Index of layer</param> /// <param name="blendMode">AnimationBlendMode</param> public AnimationLayer(int layerIndex, UnityEngine.AnimationBlendMode blendMode) { this.BlendMode = blendMode; this.LayerIndex = layerIndex; ActiveAnimNodes = new List <AnimNodeSequence>(); }