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

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

            if (!handle.IsValid())
            {
                result = AnimatorControllerPlayable.Null;
            }
            else
            {
                result = new AnimatorControllerPlayable(handle);
            }
            return(result);
        }