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.
Read time 1 minuteLast updated 10 days ago
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.