# CompareTo(object)

> Returns an integer value comparing the name property of two GizmoInfo types.

## Definition

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

## CompareTo(Object)

```csharp
public int CompareTo(object obj)
```

### Parameters

**** (\[Object]\(https\://learn.microsoft.com/dotnet/api/system.object)): The GizmoInfo to compare.

### Returns

| Type                                                       | Description                                                                  |
| ---------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [int](https://learn.microsoft.com/dotnet/api/system.int32) | Returns an integer value comparing the name property of two GizmoInfo types. |
