# SetIconEnabled(Type, bool)

> Enable or disable icon rendering for all objects in the Scene View for a component type.

## Definition

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

```csharp
public static void SetIconEnabled(Type type, bool enabled)
```

### Parameters

**** (\[Type]\(https\://learn.microsoft.com/dotnet/api/system.type)): The component type to render or hide icons.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Set true to render icons for this component type in the Scene View, false to hide.

### Remarks

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