Skip to content

Does not work for children of NetworkBehaviour #150

Open
@ryzhovalex

Description

@ryzhovalex

Describe the bug
For classes inherited from Unity.Netcode.NetworkBehaviour no attributes are drawn.

For other classes, even in the same assembly, even inherited from other abstract classes (which in turn are inherited from MonoBehaviour) works fine.

Maybe the error is not connected with NetworkBehaviour, or Unity did some nasty things there, or the error is mine, don't know :)

Expected behavior
Drawn attributes, as usual.

Code Sample

using TriInspector;
using Unity.Netcode;
using UnityEngine;

public class Test: NetworkBehaviour
{
    [SerializeField]
    private bool isSynced = false;

    [InfoBox(
        "oh no",
        TriMessageType.Warning
    )]
    [SerializeField]
    [EnableIf(nameof(isSynced))]
    private int syncActionType;
}

Screenshots
image

Desktop: Windows 11
Unity version: 2023.2.4f1
Tri Inspector version: 1.13.2

Metadata

Metadata

Assignees

No one assigned

    Labels

    wontfixThis will not be worked on

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions