Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


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

public static AnimatorController CreateAnimatorControllerAtPathWithClip(string path, AnimationClip clip)

Parameters

path

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.