# GetRevision()

> Gets the current revision number of the build history.

## Definition

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

```csharp
public static int GetRevision()
```

### Returns

| Type                                                       | Description                                                                  |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | The revision number, which increments each time a build is added or removed. |

### Remarks

UI can cache this value to efficiently detect when a refresh is needed.
