コード例 #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);
        }
コード例 #2
0
        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);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
 internal static bool InternalCreateAnimationOutput(ref PlayableGraph graph, string name, out PlayableOutputHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalCreateAnimationOutput(ref graph, name, out handle));
 }
コード例 #5
0
 private static bool InternalGetAnimationOutput(ref PlayableGraph graph, int index, out PlayableOutputHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalGetAnimationOutput(ref graph, index, out handle));
 }
コード例 #6
0
 private static int InternalAnimationOutputCount(ref PlayableGraph graph)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalAnimationOutputCount(ref graph));
 }
コード例 #7
0
 internal static void DestroyOutput(this PlayableGraph graph, PlayableOutputHandle handle)
 {
     AnimationPlayableGraphExtensions.InternalDestroyOutput(ref graph, ref handle);
 }
コード例 #8
0
 private static void InternalDestroyOutput(ref PlayableGraph graph, ref PlayableOutputHandle handle)
 {
     AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalDestroyOutput(ref graph, ref handle);
 }
コード例 #9
0
 private static bool InternalCreateAnimationMotionXToDeltaPlayable(ref PlayableGraph graph, ref PlayableHandle handle)
 {
     return(AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalCreateAnimationMotionXToDeltaPlayable(ref graph, ref handle));
 }
コード例 #10
0
 internal static void InternalSyncUpdateAndTimeMode(ref PlayableGraph graph, Animator animator)
 {
     AnimationPlayableGraphExtensions.INTERNAL_CALL_InternalSyncUpdateAndTimeMode(ref graph, animator);
 }
コード例 #11
0
 internal static void SyncUpdateAndTimeMode(this PlayableGraph graph, Animator animator)
 {
     AnimationPlayableGraphExtensions.InternalSyncUpdateAndTimeMode(ref graph, animator);
 }