Awake not called if class has static member

Hey,

my code:

public class EntryPoint : MonoBehaviour
    {    
        public NetworkManager networkManager { get; private set; }
        public GameLogic gameLogic { get; private set; }
        public InputHandler inputHander { get; private set; }
        public RenderManager renderManager { get; private set; }

        void Awake()
        {
            networkManager = new NetworkManager("127.0.0.1", this);
            gameLogic = new GameLogic(this);
            inputHander = new InputHandler(this);
            renderManager = new RenderManager(this);
            Debug.Log("asd");
        }

As soon as I make eg the reference to inputHandler static,

        public static InputHandler inputHander { get; private set; }

Awake() will not be called anymore. How can I fix this?

If Awake really is not getting called, what you mention is not the issue. That would be terrible.

The mistake was that the usage of OnValidate() resulted in a method trying to access a variable of the inputHandler. It seems like awake() is called after OnValidate(). And that must have crashed something.