Version: 2022.2

AnimationUtility.GetAnimatableBindings

切换到手册
public static EditorCurveBinding[] GetAnimatableBindings (GameObject targetObject, GameObject root);

描述

Retrieves the animatable bindings for a specific GameObject.

Use this method to find which can be animated for a GameObject.

根游戏对象不需要是实际的根,但它必须在层级视图中高于目标对象。目标和根也可以是相同的游戏对象。