Skip to content

Getting Started

fydar edited this page Sep 24, 2019 · 1 revision

To get started with AssetIcons, locate or create a ScriptableObject that you would like to have a custom icon.

Simply add the AssetIconAttribute to a field that you would like to represent the icon.

[CreateAssetMenu]
public class ItemInformation : ScriptableObject
{
    [AssetIcon]
    public Sprite ItemIcon;
}

Clone this wiki locally