Skip to content

annulusgames/UnityEditorIcons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

UnityEditorIcons

Utility class to get Unity built-in icon as property

license

日本語版READMEはこちら

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

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.

License

Mit License

About

Utility class to get Unity built-in icon as property

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages