static public int GetNextAnimatorClipInfo(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (argc == 2) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetNextAnimatorClipInfo(a1); pushValue(l, true); pushValue(l, ret); return(2); } else if (argc == 3) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Collections.Generic.List <UnityEngine.AnimatorClipInfo> a2; checkType(l, 3, out a2); self.GetNextAnimatorClipInfo(a1, a2); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int GetBool(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(int))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetBool(a1); pushValue(l, true); pushValue(l, ret); return(2); } else if (matchType(l, argc, 2, typeof(string))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.String a1; checkType(l, 2, out a1); var ret = self.GetBool(a1); pushValue(l, true); pushValue(l, ret); return(2); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
void Start() { // Wrap the clip and the controller in playables AnimationClipPlayable clip_playable = new AnimationClipPlayable( clip ); AnimatorControllerPlayable controller_playable = new AnimatorControllerPlayable( anim_controller ); AnimationMixerPlayable mixer = new AnimationMixerPlayable(); mixer.SetInputs( new AnimationPlayable[] {clip_playable, controller_playable} ); // Bind the playable graph to the player GetComponent<Animator>().Play( mixer ); }
static public int get_parameterCount(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); pushValue(l, true); pushValue(l, self.parameterCount); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int RemoveAllInputs(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); var ret = self.RemoveAllInputs(); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable o; o = new UnityEngine.Experimental.Director.AnimatorControllerPlayable(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int constructor(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable o; UnityEngine.RuntimeAnimatorController a1; checkType(l,2,out a1); o=new UnityEngine.Experimental.Director.AnimatorControllerPlayable(a1); pushValue(l,true); pushValue(l,o); return 2; } catch(Exception e) { return error(l,e); } }
static public int set_handle(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); UnityEngine.Experimental.Director.PlayableHandle v; checkValueType(l, 2, out v); self.handle = v; pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
static bool StateMachineBehaviour_OnStateMachineExit__Animator__Int32__AnimatorControllerPlayable(JSVCall vc, int argc) { int len = argc; if (len == 3) { UnityEngine.Animator arg0 = (UnityEngine.Animator)JSMgr.datax.getObject((int)JSApi.GetType.Arg); System.Int32 arg1 = (System.Int32)JSApi.getInt32((int)JSApi.GetType.Arg); UnityEngine.Experimental.Director.AnimatorControllerPlayable arg2 = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)JSMgr.datax.getObject((int)JSApi.GetType.Arg); ((UnityEngine.StateMachineBehaviour)vc.csObj).OnStateMachineExit(arg0, arg1, arg2); } return(true); }
static public int SetInputs(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Collections.Generic.IEnumerable <UnityEngine.Experimental.Director.AnimationPlayable> a1; checkType(l, 2, out a1); var ret = self.SetInputs(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int GetParameter(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); var ret = self.GetParameter(a1); pushValue(l, true); pushValue(l, ret); return(2); } catch (Exception e) { return(error(l, e)); } }
static public int SetLayerWeight(IntPtr l) { try { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Single a2; checkType(l, 3, out a2); self.SetLayerWeight(a1, a2); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
private static bool GetBoolID(ref PlayableHandle handle, int id) { return(AnimatorControllerPlayable.INTERNAL_CALL_GetBoolID(ref handle, id)); }
public override void OnStateExit(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller) { base.OnStateExit(animator, stateInfo, layerIndex, controller); animator.GetComponent<Exit>().Open(); }
public virtual void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller) { }
public virtual void OnStateMachineExit(Animator animator, int stateMachinePathHash, AnimatorControllerPlayable controller) { }
private static void SetIntegerID(ref PlayableHandle handle, int id, int value) { AnimatorControllerPlayable.INTERNAL_CALL_SetIntegerID(ref handle, id, value); }
public void SetBool(int id, bool value) { AnimatorControllerPlayable.SetBoolID(ref this.handle, id, value); }
public override void OnStateMachineExit(Animator animator, int stateMachinePathHash, AnimatorControllerPlayable controller) { base.OnStateMachineExit(animator, stateMachinePathHash, controller); }
private static bool IsParameterControlledByCurveID(ref PlayableHandle handle, int id) { return(AnimatorControllerPlayable.INTERNAL_CALL_IsParameterControlledByCurveID(ref handle, id)); }
private static bool IsParameterControlledByCurveString(ref PlayableHandle handle, string name) { return(AnimatorControllerPlayable.INTERNAL_CALL_IsParameterControlledByCurveString(ref handle, name)); }
public int GetInteger(string name) { return(AnimatorControllerPlayable.GetIntegerString(ref this.handle, name)); }
private static void ResetTriggerID(ref PlayableHandle handle, int id) { AnimatorControllerPlayable.INTERNAL_CALL_ResetTriggerID(ref handle, id); }
private static void ResetTriggerString(ref PlayableHandle handle, string name) { AnimatorControllerPlayable.INTERNAL_CALL_ResetTriggerString(ref handle, name); }
private static int GetIntegerID(ref PlayableHandle handle, int id) { return(AnimatorControllerPlayable.INTERNAL_CALL_GetIntegerID(ref handle, id)); }
public bool GetBool(int id) { return(AnimatorControllerPlayable.GetBoolID(ref this.handle, id)); }
private static int GetIntegerString(ref PlayableHandle handle, string name) { return(AnimatorControllerPlayable.INTERNAL_CALL_GetIntegerString(ref handle, name)); }
public override void OnStateUpdate(Animator animator, AnimatorStateInfo stateInfo, int layerIndex, AnimatorControllerPlayable controller) { base.OnStateUpdate(animator, stateInfo, layerIndex, controller); }
static public int PlayInFixedTime(IntPtr l) { try { int argc = LuaDLL.lua_gettop(l); if (matchType(l, argc, 2, typeof(int))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); self.PlayInFixedTime(a1); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(string))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.String a1; checkType(l, 2, out a1); self.PlayInFixedTime(a1); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(int), typeof(int))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.PlayInFixedTime(a1, a2); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(string), typeof(int))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); self.PlayInFixedTime(a1, a2); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(int), typeof(int), typeof(float))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.Int32 a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); self.PlayInFixedTime(a1, a2, a3); pushValue(l, true); return(1); } else if (matchType(l, argc, 2, typeof(string), typeof(int), typeof(float))) { UnityEngine.Experimental.Director.AnimatorControllerPlayable self = (UnityEngine.Experimental.Director.AnimatorControllerPlayable)checkSelf(l); System.String a1; checkType(l, 2, out a1); System.Int32 a2; checkType(l, 3, out a2); System.Single a3; checkType(l, 4, out a3); self.PlayInFixedTime(a1, a2, a3); pushValue(l, true); return(1); } pushValue(l, false); LuaDLL.lua_pushstring(l, "No matched override function to call"); return(2); } catch (Exception e) { return(error(l, e)); } }
private static bool HasStateInternal(ref PlayableHandle handle, int layerIndex, int stateID) { return(AnimatorControllerPlayable.INTERNAL_CALL_HasStateInternal(ref handle, layerIndex, stateID)); }
private static bool GetBoolString(ref PlayableHandle handle, string name) { return(AnimatorControllerPlayable.INTERNAL_CALL_GetBoolString(ref handle, name)); }
public bool HasState(int layerIndex, int stateID) { return(AnimatorControllerPlayable.HasStateInternal(ref this.handle, layerIndex, stateID)); }
private static void SetIntegerString(ref PlayableHandle handle, string name, int value) { AnimatorControllerPlayable.INTERNAL_CALL_SetIntegerString(ref handle, name, value); }
public int GetInteger(int id) { return(AnimatorControllerPlayable.GetIntegerID(ref this.handle, id)); }
public void SetBool(string name, bool value) { AnimatorControllerPlayable.SetBoolString(ref this.handle, name, value); }
public void SetInteger(string name, int value) { AnimatorControllerPlayable.SetIntegerString(ref this.handle, name, value); }
private static void PlayInternal(ref PlayableHandle handle, int stateNameHash, int layer) { float normalizedTime = float.NegativeInfinity; AnimatorControllerPlayable.INTERNAL_CALL_PlayInternal(ref handle, stateNameHash, layer, normalizedTime); }