Awesome
UnityEditorIcons
Utility class to get Unity built-in icon as property
<img src="https://github.com/AnnulusGames/UnityEditorIcons/blob/main/Assets/UnityEditorIcons/Documentation~/img1.png" width="500">Overview
UnityEditorIcons is a library that allows you to easily get Unity editor icons, which are over 1000. All icons can be obtained as properties of the EditorIcons class.
Setup
Install
- Open the Package Manager from Window > Package Manager
- "+" button > Add package from git URL
- Enter the following to install
or open Packages/manifest.json and add the following to the dependencies block.
{
"dependencies": {
"com.annulusgames.unity-editor-icons": "https://github.com/AnnulusGames/UnityEditorIcons.git?path=/Assets/UnityEditorIcons"
}
}
Namespace
When using UnityEditorIcons, add the following line at the beginning of the file.
using AnnulusGames.UnityEditorIcons;
How to use
You can get icons from EditorIcons class.
//get help icon
GUIContent icon = EditorIcons.Help;
Use GetComponentIcon to get the component icon.
// Get Rigidbody icon
GUIContent icon = EditorIcons.GetComponentIcon<Rigidbody>();
Available icons can be checked from Window > Editor Icon Browser.