示例#1
0
        internal static AnimatorControllerPlayable FindAnimatorControllerPlayable(Animator animator, AnimatorController controller)
        {
            AnimatorControllerPlayable result = default(AnimatorControllerPlayable);

            AnimatorController.FindAnimatorControllerPlayableInternal(ref result, animator, controller);
            return(result);
        }
示例#2
0
        internal static AnimatorControllerPlayable FindAnimatorControllerPlayable(Animator animator, AnimatorController controller)
        {
            PlayableHandle handle = default(PlayableHandle);

            AnimatorController.FindAnimatorControllerPlayableInternal(ref handle, animator, controller);
            AnimatorControllerPlayable result;

            if (!handle.IsValid())
            {
                result = AnimatorControllerPlayable.Null;
            }
            else
            {
                result = new AnimatorControllerPlayable(handle);
            }
            return(result);
        }
示例#3
0
        internal static AnimatorControllerPlayable FindAnimatorControllerPlayable(Animator animator, AnimatorController controller)
        {
            PlayableHandle playableHandle = default(PlayableHandle);

            AnimatorController.FindAnimatorControllerPlayableInternal(ref playableHandle, animator, controller);
            AnimatorControllerPlayable result;

            if (!playableHandle.IsValid())
            {
                result = null;
            }
            else
            {
                AnimatorControllerPlayable @object = playableHandle.GetObject <AnimatorControllerPlayable>();
                result = @object;
            }
            return(result);
        }