# SetFloat(string, float)

> Store a Float value.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor](/engine/6000.0/script-reference/unityeditor.md)
* **Assembly:** UnityEditor

```csharp
public static void SetFloat(string key, float value)
```

### Parameters

**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): **** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)):&#x20;
