[ObjectIcon]

Attribute used for sets a custom icon for the component and optionally Hierarchy.

Parameters

Parameter
Type
Description

path

string

Path to the icon texture asset.

Examples

[ObjectIcon("Assets/Icons/MyIcon.png")]
public class MyComponent : MonoBehaviour
{
    // ...
}

Last updated