Exemple #1
0
        public static AnimationPlayableOutput Create(PlayableGraph graph, string name, Animator target)
        {
            PlayableOutputHandle handle;

            if (!AnimationPlayableGraphExtensions.InternalCreateAnimationOutput(ref graph, name, out handle))
            {
                return(AnimationPlayableOutput.Null);
            }

            AnimationPlayableOutput output = new AnimationPlayableOutput(handle);

            output.SetTarget(target);

            return(output);
        }
        internal static PlayableHandle CreateAnimationMotionXToDeltaPlayable(this PlayableGraph graph)
        {
            PlayableHandle @null = PlayableHandle.Null;
            PlayableHandle result;

            if (!AnimationPlayableGraphExtensions.InternalCreateAnimationMotionXToDeltaPlayable(ref graph, ref @null))
            {
                result = PlayableHandle.Null;
            }
            else
            {
                @null.SetInputCount(1);
                result = @null;
            }
            return(result);
        }
        public static AnimationPlayableOutput Create(PlayableGraph graph, string name, Animator target)
        {
            PlayableOutputHandle    handle;
            AnimationPlayableOutput result;

            if (!AnimationPlayableGraphExtensions.InternalCreateAnimationOutput(ref graph, name, out handle))
            {
                result = AnimationPlayableOutput.Null;
            }
            else
            {
                AnimationPlayableOutput animationPlayableOutput = new AnimationPlayableOutput(handle);
                animationPlayableOutput.SetTarget(target);
                result = animationPlayableOutput;
            }
            return(result);
        }
 internal static bool InternalCreateAnimationOutput(ref PlayableGraph graph, string name, out PlayableOutputHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalCreateAnimationOutput(ref graph, name, out handle));
 }
 private static bool InternalGetAnimationOutput(ref PlayableGraph graph, int index, out PlayableOutputHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalGetAnimationOutput(ref graph, index, out handle));
 }
 private static int InternalAnimationOutputCount(ref PlayableGraph graph)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalAnimationOutputCount(ref graph));
 }
 internal static void DestroyOutput(this PlayableGraph graph, PlayableOutputHandle handle)
 {
     AnimationPlayableGraphExtensions.InternalDestroyOutput(ref graph, ref handle);
 }
 private static void InternalDestroyOutput(ref PlayableGraph graph, ref PlayableOutputHandle handle)
 {
     AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalDestroyOutput(ref graph, ref handle);
 }
 private static bool InternalCreateAnimationMotionXToDeltaPlayable(ref PlayableGraph graph, ref PlayableHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalCreateAnimationMotionXToDeltaPlayable(ref graph, ref handle));
 }
 internal static void InternalSyncUpdateAndTimeMode(ref PlayableGraph graph, Animator animator)
 {
     AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalSyncUpdateAndTimeMode(ref graph, animator);
 }
 internal static void SyncUpdateAndTimeMode(this PlayableGraph graph, Animator animator)
 {
     AnimationPlayableGraphExtensions.InternalSyncUpdateAndTimeMode(ref graph, animator);
 }