CreateAnimatorControllerAtPathWithClip(string, AnimationClip)
Creates an AnimatorController at the given path, and automatically create an AnimatorLayer with an AnimatorStateMachine that will add a State with the AnimationClip in it.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor.Animations
- Assembly: UnityEditor
public static AnimatorController CreateAnimatorControllerAtPathWithClip(string path, AnimationClip clip)
Parameters
The path where the AnimatorController will be created.
The default clip that will be played by the AnimatorController.
Returns
Type | Description |
|---|---|
| AnimatorController |
Remarks
This function pushes an Undo operation.