Assign icons to inspected items
Assign built-in or custom icons to display on the item in the Scene view.
읽는 시간 2분최근 업데이트: 한 달 전
Use the window to assign an icon to the item you're inspecting. The icon appears in the view, making it easier to identify the item.
Inspector
?
Scene
?
The icon's behavior in the Scene view depends on the item type:
- GameObject: The icon appears over that GameObject, and any duplicates.
- Prefab: The icon appears over any instances of that prefab.
- Script: The icon appears over any GameObject that has the script attached.
To control how Unity draws custom icons in the Scene view, use the Gizmos menu.
Icon types
The Unity Editor supports three icons types.
Icon type | Description |
|---|---|
| Label icons | Colored capsules that show the item's name. |
| Image only icons | Colored circles. They're useful for objects that don't have a visual representation such as waypoints. |
| Custom icons (other) | An icon based on an asset in the project. For example, use a skull and crossbones icon to indicate danger areas in a game level. |
Manage icons in the Inspector window
To add icons, in the Inspector window, select Select icon. Then:
-
To assign an icon to a GameObject or a script, do one of the following:
- To assign a label or image icon, click any icon from the list.
- To assign a custom icon, select Other... and select a texture.
-
To assign an icon to a prefab, open the prefab in prefab editing mode.
To replace or remove icons, in the Inspector window, select Select icon. Then:
- To replace the icon, select any other icon from the list.
- To remove the icon, select None. The item's icon reverts to the default Unity icon.