Animations.AnimatorController.CreateAnimatorControllerAtPathWithClip

Unity · Версия 2020.3 LTS · Scripting · AnimatorController

Animations.AnimatorController.CreateAnimatorControllerAtPathWithClip

Объявление

public static Animations.AnimatorController CreateAnimatorControllerAtPathWithClip(string path, AnimationClip clip);

Параметры

path Путь, по которому будет создан AnimatorController.
clip Клип по умолчанию, который будет воспроизводиться AnimatorController.

Описание

Создает AnimatorController по указанному пути и автоматически создает AnimatorLayer с AnimatorStateMachine, который добавит состояние с AnimationClip в нем.

Эта функция запускает операцию отмены.

Обновлено 17 ноября 2026 г.