Skip to content

Header is not rendered before the collection #180

@xk0fe

Description

@xk0fe

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

Image

Desktop: Windows 10
Unity version: 2023.2.5
Tri Inspector version: 1.14.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions