Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


IconAttribute

Attribute to specify an icon for a MonoBehaviour or ScriptableObject.
Read time 3 minutesLast updated 2 days ago

Definition

[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

pathA project-relative path to a texture.

Inheritance

Inherited Members