-
Notifications
You must be signed in to change notification settings - Fork 60
Open
Labels
wontfixThis will not be worked onThis will not be worked on
Description
Describe the bug
[Header] attribute does nothing when placed before collection that is drawn with Tri Inspector
Expected behavior
Header is displayed before the collection
Code Sample
public class TriTest : MonoBehaviour
{
[Header("Header 1")]
[SerializeField, DrawWithUnity] private List<Item> _unityItems;
[Header("Header 2")]
[SerializeField] private List<Item> _triItems;
[Header("Header 3")]
[SerializeField, DrawWithUnity] private Item[] _unityItemsArray;
[Header("Header 4")]
[SerializeField] private Item[] _triItemsArray;
}
[Serializable]
public class Item
{
[Header("Header 1")]
[SerializeField] private List<AnotherItem> _items;
[Header("Header 2")]
[SerializeField] private string _name;
[Header("Header 3")]
[SerializeField] private int _value;
}
[Serializable]
public class AnotherItem
{
[SerializeField] private string _value;
}
Screenshots
Desktop: Windows 10
Unity version: 2023.2.5
Tri Inspector version: 1.14.1
Metadata
Metadata
Assignees
Labels
wontfixThis will not be worked onThis will not be worked on