Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SetIconEnabled(Type, bool)

Enable or disable icon rendering for all objects in the Scene View for a component type.
Read time 1 minuteLast updated 4 days ago

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor
public static void SetIconEnabled(Type type, bool enabled)

Parameters

type

The component type to render or hide icons.

enabled

Set true to render icons for this component type in the Scene View, false to hide.

Remarks

Type must be assignable to Component.