文档

Unity Engine

Unity Engine

SetIconEnabled(Type, bool)

Enable or disable icon rendering for all objects in the Scene View for a component type.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEditor
  • Assembly: UnityEditor.CoreModule
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.