Animations.AnimatorController.GetStateEffectiveMotion

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

Animations.AnimatorController.GetStateEffectiveMotion

Объявление

public Motion GetStateEffectiveMotion(Animations.AnimatorState state);

public Motion GetStateEffectiveMotion(Animations.AnimatorState state, int layerIndex);

Параметры

state AnimatorState, для которого мы хотим движение.
layerIndex Запрашиваемый слой.

Описание

Получает эффективное движение для AnimatorState. Движение сохраняется либо в AnimatorStateMachine, либо в ovverrides AnimatorLayer. Используйте эту функцию, чтобы получить движение, которое эффективно используется.

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