JUtils
A unity utilities library
JUtils.CustomNameAttribute Class Reference

Change the name of a parameter in the inspector More...

Inheritance diagram for JUtils.CustomNameAttribute:
Collaboration diagram for JUtils.CustomNameAttribute:

Public Member Functions

 CustomNameAttribute (string name)
 

Public Attributes

readonly string name
 

Detailed Description

Change the name of a parameter in the inspector

namespace Example
{
public class CustomNameExample : MonoBehaviour
{
[Header("Spawn Settings")]
[SerializeField, CustomName("Interval")] private float _spawnInterval; // will display as "Interval" in the inspector
}
}

Constructor & Destructor Documentation

◆ CustomNameAttribute()

JUtils.CustomNameAttribute.CustomNameAttribute ( string  name)
inline

Member Data Documentation

◆ name

readonly string JUtils.CustomNameAttribute.name

The documentation for this class was generated from the following file: