Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Header is not rendered before the collection #180

Open
xk0fe opened this issue Jan 18, 2025 · 0 comments
Open

Header is not rendered before the collection #180

xk0fe opened this issue Jan 18, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@xk0fe
Copy link

xk0fe commented Jan 18, 2025

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

@xk0fe xk0fe added the bug Something isn't working label Jan 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant