Version: 2022.1

GizmoUtility.SetIconEnabled

切换到手册
public static void SetIconEnabled (Type type, bool enabled);

参数

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.

描述

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

Type must be assignable to Component.