/unity-material-icons

This project simplifies the usage of Google's Material Design icons on Unity.

Primary LanguageC#Apache License 2.0Apache-2.0

Unity Material Icons

paypal

This project simplifies the usage of Google's Material Design icons on Unity.

Supported Unity versions are 2017.1 or higher.

preview

Quickstart

Simply import the package into Unity by downloading it from the latest release.

Then, add the MaterialIcon class to your GameObject and you are good to go.

You can also add a new icon to the scene by right-clicking on the hierarchy window and selecting Google > Material Icon.

Documentation

The MaterialIcon class inherits from UnityEngine.UI.Text, so you have all properties and methods available here such as color and raycast target.

You can set the icon programaticaly by setting the text to the properly Unicode escaped char (e.g., icon.text = "\uE84D"), or without unicode notation by using the provided sugar iconUnicode (e.g., icon.iconUnicode = "E84D").

Known issues

The "goat" icon (unicode 10FFFD) is currently the only unsupported one due to surrogate-pair characters limitations.

Credits

This project was created by Conrado (https://github.com/convalise).

It makes usage of the Material Design icons project by Google.
More information on the Google's project can be found at the Material Icons Guide.

License

This software is licensed under Apache License 2.0. You can find the full text of the license here.