- Home /
Is it possible to make an online multiplayer 2D game in unity using only the unity UI components
I am currently making an online board game in unity and I have made everything consisting entirely of unity UI components, I do not use any 2D gameobjects, I just loaded the sprites onto the unity image components and use buttons to make each grid of the board so the only thing there is in my scene is 2 player canvases. I would want to know if it is possible to make my game into an online multiplayer game where the canvases can be synced as a single board so that what the one player selects on their canvas will also be displayed on the other player's canvas, so that the whole game is played using unity UI components
I guess the answer is yes (for I've ever did similar things yet) but not recommended.
why not recommended? I can;t think of any issues doing that.
I also don't see anything wrong with it too. But so many people have told me it's not recommended. Even the physics works on the UI components. It's just here and there, they start randomly falling down even when I placed the gravity scale on the rigid body at a 0. I don't know if that's a glitch with the rigid body 2D component or a glitch with the Unity Editor
Answer by logicandchaos · Jul 26, 2020 at 02:46 AM
yes you sure can.
Can I also sync random physics simulations? Cause that is the part I was worried about. Because the UI components use random physics to move the board grids in order to collapse the board and I was wondering whether those simulations too can be synced over an online multiplayer game using the unity UI components?
Your answer
Follow this Question
Related Questions
When using unet to spawn players, the player object is invisible, but colliders present. Help 0 Answers
Unity 2D Combat Text Issue With Multiple Enemies 2 Answers
post processing stack with particle system. 1 Answer
Custom Cursor hidden behind my UI 2 Answers
Is making a 2d tile based game all in UI a bad solution or is it viable? 1 Answer