Can't find StartHost() function for a button
I'm trying to call the StartHost() function from a button on a canvas. I search for it but I can only find the StartMatchMaker. I look for it on a game object with a network manager and a network manager HUD. Am I doing something wrong?
Answer by Dryn27 · Jul 12, 2017 at 02:40 AM
I forgot about this question xD
solved it a long ago... I had to add a public method calling StartHost() function in a separated script so I could call my public method containing StartHost(). Somehow Unity doesn't allow you to call StartHost() function by itself...
Your answer
Follow this Question
Related Questions
Functions on GUI elements disapearing after reloading the scene 1 Answer
Create Button via Script not working 1 Answer
Problem with creating button via script. 1 Answer
Toggle Button: hope it toggle once but it toggle many times 1 Answer
Display rigidbody speed to a world space canvas text 2 Answers