codewriter-packages/Tri-Inspector

Group content box not draw correctly.

Yuki-Soul opened this issue · 3 comments

Describe the bug
i expect it should have body box like in screenshot in readme. but after i try, it did not have box on content. so i think it is a bug?

Code Sample
From Tri-inspector sample code.

using UnityEngine;
using TriInspector;

[DeclareBoxGroup("box", Title = "My Box")]
[CreateAssetMenu(fileName = "BoxGroupSample", menuName = "BoxGroupSample")]
public class BoxGroupSample : ScriptableObject
{
    [Group("box")] public int a;
    [Group("box")] public bool b;
}

Screenshots
This what i do for test;
devenv_UO49QyNpDY

Expected result: (Having content box)
firefox_6VSRHRjEri

Result: (Not having content box)
Unity_38q94fDX9l

Desktop: Windows 10
Unity version: 2021.3.15f1
Tri Inspector version: 1.9.7

Anybody face the same issue, or it just me?

When you open Tools -> TriInspector -> Examples does their box group look OK? I just tried a box group on a scriptable object and it worked fine.

Sample code works correctly

изображение