Skip to content

Inspector not working #196

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions