- Home /
[Networking]How to call a command function from a UI element(a button)
I have a button that sits on my player prefab from the on click field on the button in the inspector I call a command function which I use to spawn magic attacks and stuff but it doesn't work It works as long as there is only the host in the game but as soon as a client join the game it works for niether of them I have tried all sorts of things like using bridge functions(button calls a function which is not a command which calls the command) but nothing is working I have to use button for the attack because I'm making a top-down moba style game for android which is click to move
Answer by Weightless · Jan 27, 2018 at 02:40 PM
please let me know if you figured something out about this, im having a similar issue @Utkrisht1453
Have you solved this problem? I am struggling on the same.