Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

AnimatorController.AddLayer

Switch to Manual
public function AddLayer(name: string): void;
public function AddLayer(layer: Animations.AnimatorControllerLayer): void;

Parameters

nameThe name of the Layer.
layerThe layer to add.

Description

Utility function to add a layer to the controller.

This function pushes an Undo operation.