https://github.com/annulusgames/unityeditoricons
Utility class to get Unity built-in icon as property
https://github.com/annulusgames/unityeditoricons
Last synced: over 1 year ago
JSON representation
Utility class to get Unity built-in icon as property
- Host: GitHub
- URL: https://github.com/annulusgames/unityeditoricons
- Owner: annulusgames
- License: mit
- Created: 2023-01-08T12:49:06.000Z (over 3 years ago)
- Default Branch: main
- Last Pushed: 2023-01-08T15:24:58.000Z (over 3 years ago)
- Last Synced: 2025-03-02T03:24:16.353Z (over 1 year ago)
- Language: C#
- Size: 138 KB
- Stars: 11
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# UnityEditorIcons
Utility class to get Unity built-in icon as property

[](LICENSE)
[日本語版READMEはこちら](README_JP.md)
## 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
1. Open the Package Manager from Window > Package Manager
2. "+" button > Add package from git URL
3. Enter the following to install
* https://github.com/AnnulusGames/UnityEditorIcons.git?path=/Assets/UnityEditorIcons
or open Packages/manifest.json and add the following to the dependencies block.
```json
{
"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.
```cs
using AnnulusGames.UnityEditorIcons;
```
## How to use
You can get icons from EditorIcons class.
``` cs
//get help icon
GUIContent icon = EditorIcons.Help;
```
Use GetComponentIcon to get the component icon.
``` cs
// Get Rigidbody icon
GUIContent icon = EditorIcons.GetComponentIcon();
```
Available icons can be checked from Window > Editor Icon Browser.
## License
[Mit License](LICENSE)