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

Does not work for children of NetworkBehaviour #150

Open
ryzhovalex opened this issue Jan 13, 2024 · 0 comments
Open

Does not work for children of NetworkBehaviour #150

ryzhovalex opened this issue Jan 13, 2024 · 0 comments
Labels
bug Something isn't working wontfix This will not be worked on

Comments

@ryzhovalex
Copy link

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

@ryzhovalex ryzhovalex added the bug Something isn't working label Jan 13, 2024
@vanifatovvlad vanifatovvlad added the wontfix This will not be worked on label Apr 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working wontfix This will not be worked on
Projects
None yet
Development

No branches or pull requests

2 participants