IconAttribute
Attribute to specify an icon for a MonoBehaviour or ScriptableObject.
Read time 3 minutesLast updated 2 days ago
Definition
- Type: Class
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
- Inherits from: Attribute
[AttributeUsage(AttributeTargets.Class, Inherited = true, AllowMultiple = false)][Conditional("UNITY_EDITOR")]public class IconAttribute : Attribute
Constructors
Constructor | Description |
|---|---|
| IconAttribute(System.String) | Create an IconAttribute with a path to an icon. |
Properties
Property | Description |
|---|---|
| path | A project-relative path to a texture. |