- Home /
Question by
5devilz · Nov 19, 2018 at 09:11 PM ·
gameobjectmultiplayerdontdestroyonload
Button loses reference to Networkmanager Object.
Hey,
i'm currantly doing the Brackey's FPS Multiplayer tutorial. In the episode when he creates the Create Host UI (E.18) He puts the HostGame script on the NetworkManager GameObject. Since the NetworkManager component is attached to it, it becomes a 'Don't destroy on load' object. And everything works fine, also in the later episodes he can create, close and recreate any amount of lobbies he whant's.
My problem now: if i do the same thing, the 'Create Game' Button loses it's reference to the NetworkManager and the HostGame script after returning to the Menu scene. Do I put the HostGame script on an normal GameObject it works without any issue. Why's that?
Oh almost forgot: His unity version is 5.3 / 5.4 and mine is 2018.13f1.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612182420im_/https://answers.unity.com/themes/thub/images/avi.jpg)