Skip to content
This repository has been archived by the owner on Apr 23, 2024. It is now read-only.

convalise/unity-material-icons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages