Odin Attributes Not Working On Mirror Network Behaviors

Issue #897 resolved
Justin Wells created an issue

Hello so I’ve started to use odin inspector, and odin valadator in my current multiplayer mirror project. I’ve noticed that odin attibutes don’t work on any of my network behaviour scripts. They seem to only on monobehaviour’s or scriptableobjects there a way to fix this?

Comments (1)

  1. Antonio Rafael Antunes Miranda

    Hey Justin, the reason for that behavior is that the network behavior defines a custom editor which overrides Odin's default drawer that normally takes over all drawing. You can return control to Odin by doing something like this:

    [CustomEditor(typeof(NetworkBehaviour))]
    public class OdinNetworkBehaviourEditor : OdinEditor {}
    
  2. Log in to comment