ernstluring / ListElementTitleAttribute-Unity

An attribute for specifying a variable as name property for a list in the Unity inspector

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

ListElementTitleAttribute-Unity

A attribute for specifying a variable as name property for a list in the Unity inspector

[System.Serializable]
public class CharacterStats
{
    public BattleCharacter character;
    public float maxHP;
}

[SerializeField]
[ListElementTitle("character")]
private List<CharacterStats> _characterStats;

listElementTitleAttr-Inspector

About

An attribute for specifying a variable as name property for a list in the Unity inspector


Languages

Language:C# 100.0%