# SetAxis(string, float)

> Sets the axis value for this input. Only works for input typed Custom.

## Definition

* **Type:** Method
* **Namespace:** [UnityEngine](/engine/6000.7/script-reference/unityengine.md)
* **Assembly:** UnityEngine.ClusterInputModule

> **Warning:**
>
> **Deprecated.** This type is deprecated and will be removed in a future release.

```csharp
public static void SetAxis(string name, float value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Name of input to modify.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): Value to set.
