public static AnimationPlayableOutput GetAnimationOutput(this PlayableGraph graph, int index) { AnimationPlayableOutput result = default(AnimationPlayableOutput); if (!InternalGetAnimationOutput(ref graph, index, out result.m_Output)) { return(AnimationPlayableOutput.Null); } return(result); }
public static PlayableHandle PlayAnimatorController(Animator animator, RuntimeAnimatorController controller, out PlayableGraph graph) { graph = PlayableGraph.CreateGraph(); AnimationPlayableOutput animationPlayableOutput = graph.CreateAnimationOutput("AnimatorControllerPlayable", animator); PlayableHandle playableHandle = graph.CreateAnimatorControllerPlayable(controller); animationPlayableOutput.sourcePlayable = playableHandle; graph.SyncUpdateAndTimeMode(animator); graph.Play(); return(playableHandle); }
public static PlayableHandle PlayMixer(Animator animator, int inputCount, out PlayableGraph graph) { graph = PlayableGraph.CreateGraph(); AnimationPlayableOutput animationPlayableOutput = graph.CreateAnimationOutput("Mixer", animator); PlayableHandle playableHandle = graph.CreateAnimationMixerPlayable(inputCount); animationPlayableOutput.sourcePlayable = playableHandle; graph.SyncUpdateAndTimeMode(animator); graph.Play(); return(playableHandle); }
public static PlayableHandle PlayClip(Animator animator, AnimationClip clip, out PlayableGraph graph) { graph = PlayableGraph.CreateGraph(); AnimationPlayableOutput animationPlayableOutput = graph.CreateAnimationOutput("AnimationClip", animator); PlayableHandle playableHandle = graph.CreateAnimationClipPlayable(clip); animationPlayableOutput.sourcePlayable = playableHandle; graph.SyncUpdateAndTimeMode(animator); graph.Play(); return(playableHandle); }
public static AnimationPlayableOutput CreateAnimationOutput(this PlayableGraph graph, string name, Animator target) { AnimationPlayableOutput result = default(AnimationPlayableOutput); if (!InternalCreateAnimationOutput(ref graph, name, out result.m_Output)) { return(AnimationPlayableOutput.Null); } result.target = target; return(result); }
static public int constructor(IntPtr l) { try { UnityEngine.Experimental.Director.AnimationPlayableOutput o; o = new UnityEngine.Experimental.Director.AnimationPlayableOutput(); pushValue(l, true); pushValue(l, o); return(2); } catch (Exception e) { return(error(l, e)); } }
public static AnimationPlayableOutput GetAnimationOutput(this PlayableGraph graph, int index) { AnimationPlayableOutput animationPlayableOutput = default(AnimationPlayableOutput); AnimationPlayableOutput result; if (!AnimationPlayableGraphExtensions.InternalGetAnimationOutput(ref graph, index, out animationPlayableOutput.m_Output)) { result = AnimationPlayableOutput.Null; } else { result = animationPlayableOutput; } return(result); }
public static AnimationPlayableOutput CreateAnimationOutput(this PlayableGraph graph, string name, Animator target) { AnimationPlayableOutput animationPlayableOutput = default(AnimationPlayableOutput); AnimationPlayableOutput result; if (!AnimationPlayableGraphExtensions.InternalCreateAnimationOutput(ref graph, name, out animationPlayableOutput.m_Output)) { result = AnimationPlayableOutput.Null; } else { animationPlayableOutput.target = target; result = animationPlayableOutput; } return(result); }
public static void DestroyOutput(this PlayableGraph graph, AnimationPlayableOutput output) { AnimationPlayableGraphExtensions.InternalDestroyOutput(ref graph, ref output.m_Output); }