Skip to content

Repository files navigation

Icon Manager

GitHub package.json versionGitHub issuesGitHub pull requestsGitHub licenseGitHub last commit

Icon Manager is a small utility that allows you to set icons on GameObjects through code.

Installation

  1. The package is available on the openupm registry. You can install it via openupm-cli.
openupm add net.tnrd.iconmanager
  1. Installing through a Unity Package created by the Package Installer Creator from Needle

Usage

Here's how you use the IconManager

privatevoidFoo(){GameObjectgameObject=FetchGameObject();IconManager.SetIcon(gameObject,LabelIcon.Teal);}

Or by using an extension for GameObjects

privatevoidFoo(){GameObjectgameObject=FetchGameObject();gameObject.SetIcon(ShapeIcon.CircleGreen);}

Removing an icon is also possible; both through the IconManager and via an extension method

privatevoidFoo(){GameObjectgameObject=FetchGameObject();IconManager.RemoveIcon(gameObject);// orgameObject.RemoveIcon();}

Support

Icon Manager is a small and open-source utility that I hope helps other people. It is by no means necessary but if you feel generous you can support me by donating.

ko-fi

Contributing

Pull requests are welcomed. Please feel free to fix any issues you find, or add new features.

About

A small script allowing you to set icons for GameObjects through code

Resources

Stars

69 stars

Watchers

6 watching

Forks

Releases

Sponsor this project

Packages

Used by

Contributors

Languages