Home

Awesome

[!WARNING] This project is deprecated in favor of my new Material Symbols one and will no longer be updated.

Unity Material Icons (legacy)

Add-on that simplifies the usage of Google's Material Design icons font on Unity. The motivation is to have a lightweight set of standardized icons in order to provide the same pattern and design throughout the whole application UI improving UX.

Supported Unity versions are 2017.1 or higher.

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.