# AddParameter

> Utility function to add a parameter to the controller.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.Animations](/engine/6000.6/script-reference/unityeditor/animations.md)
* **Assembly:** UnityEditor.CoreModule

## AddParameter(string, AnimatorControllerParameterType)

Utility function to add a parameter to the controller.

```csharp
public void AddParameter(string name, AnimatorControllerParameterType type)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): The name of the parameter.**** (\[AnimatorControllerParameterType]\(/engine/6000.6/script-reference/unityengine/animatorcontrollerparametertype)): The type of the parameter.

### Remarks

An example showing usage of this API can be found at the [AnimatorController](/engine/6000.6/script-reference/unityeditor/animations/animatorcontroller.md) page.

## AddParameter(AnimatorControllerParameter)

Utility function to add a parameter to the controller.

```csharp
public void AddParameter(AnimatorControllerParameter paramater)
```

### Parameters

**** (\[AnimatorControllerParameter]\(/engine/6000.6/script-reference/unityengine/animatorcontrollerparameter)):&#x20;

### Remarks

An example showing usage of this API can be found at the [AnimatorController](/engine/6000.6/script-reference/unityeditor/animations/animatorcontroller.md) page.
