Class SuperIcon
Attribute to specify an icon for a SuperBehaviour.
Note: Use the SuperBehaviourIcon enum to specify the icon or use a custom path.
[SuperIcon(SuperBehaviourIcon.GameManager)]
public class GameManager : SuperBehaviour { }
[AttributeUsage(AttributeTargets.Class, AllowMultiple = false, Inherited = true)]
public class SuperIcon : IconAttribute
- Inheritance
-
IconAttributeSuperIcon
Constructors
SuperIcon(SuperBehaviourIcon)
Attribute to specify an icon for a SuperBehaviour.
public SuperIcon(SuperBehaviourIcon icon)
Parameters
icon
SuperBehaviourIconThe icon to use.
SuperIcon(string)
Attribute to specify an icon for a SuperBehaviour.
public SuperIcon(string customPath)
Parameters
customPath
stringThe full custom path to the icon (e.g. "Assets/Gizmos/MyIcon.png").
Methods
GetPath()
Get the path of the icon.
public string GetPath()
Returns
- string
The path of the icon.