[ComponentName]

Attribute used for overrides the component name displayed in the header.

Parameters

Parameter Name
Arguments
Description

name

string

Custom name to display in the header.

ShowDefaultName

bool

Show the original class name alongside the custom name.

Examples

[ComponentName("Custom Name")]
public class MyComponent : MonoBehaviour
{
    // ...
}

[ComponentName("Custom Name", ShowDefaultName = true)]
public class MyComponentWithDefault : MonoBehaviour
{
    // ...
}

Last updated