Legacy Documentation: Version 5.6 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

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

AnimatorController.AddParameter

public void AddParameter(string name, AnimatorControllerParameterType type);
public void AddParameter(AnimatorControllerParameter paramater);

Parameters

name The name of the parameter.
type The type of the parameter.
paramater The parameter to add.

Description

Utility function to add a parameter to the controller.

An example showing usage of this API can be found at the AnimatorController page.