Skip to content

Inspector not working #196

@ininsicken

Description

@ininsicken

Describe the bug
The inspector attributes are not working at all in the inspector. I tried [TabGroup], [Group], [Button], [Required], and some others and I ensured they are exactly the correct syntax from the samples in Tools -> Tri Inspector -> Samples.

Expected behavior
Attributes should be drawn properly in the editor.

Code Sample

using TriInspector;
using UnityEditor;
using UnityEngine;
using UnityEngine.InputSystem;

public class MasterReferences : MonoBehaviour
{
    public static MasterReferences Instance;

    [Required(Message = "PlayerManager is not assigned.")] public PlayerManager PlayerManager;
    [Required(Message = "InputAction is not assigned.")] public InputActionAsset InputAction;

    [Button]
    private void Test()
    {
        Debug.Log("test");
    }
}

Screenshots
Image

Screenshot using the same code as posted above. Tried everything from reimporting/reinstalling fresh, making an empty project with nothing else installed and it is still not working.

Desktop: Windows 11
Unity version: 6000.2.6f2
Tri Inspector version: 1.15.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions