- Home /
OnGUI not being called with NetworkBehaviour
I have a NetworkMenu script that setups the network for both server and client. There is a OnGUI() function for the host and connect buttons.
Today the OnGUI() stopped being called.
I have copied and pasted the OnGUI() function into another script that is attached to a gameobject without a NetworkIdentity component and it works. I then tried placing that script on the gameObject with the NetworkIdentity and it does not work.
It seems to only not work while being called from an object with a NetworkIdentity component. It was working several days ago but is no longer working. Even when I create a new project I get similar results.
Any ideas?
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Multiple Cars not working 1 Answer
Why the Network Health script is always null 0 Answers
Command method dont change variables on server 0 Answers
Understanding Unet attributes 2 Answers