# TryGetGizmoInfo(Type, out GizmoInfo)

> Get a GizmoInfo for a type if it exists.

## Definition

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

## TryGetGizmoInfo(Type, GizmoInfo)

```csharp
public static bool TryGetGizmoInfo(Type type, out GizmoInfo info)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The type to get GizmoInfo for.**** (\[GizmoInfo]\(/engine/6000.0/script-reference/unityeditor/gizmoinfo)): The output argument will contain a valid GizmoInfo when this function returns true.

### Returns

| Type                                                          | Description                                                                  |
| ------------------------------------------------------------- | ---------------------------------------------------------------------------- |
| [bool](https://learn.microsoft.com/dotnet/api/system.boolean) | Returns true if Unity has a gizmo or icon registered for the requested type. |

### Remarks

Type must be assignable to [Component](/engine/6000.0/script-reference/unityengine/component.md).
