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
How you present your game to the players and doing online multiplayer are two completely independent concerns. So yes, it’s possible to make a multiplayer game using only UI components.
I am sorry but could you please elaborate on what you mean by “present your game to your players and doing online multiplayer”
Using UI is one way to present the game to the player. Using 2d sprites etc. is another way. Either of these has nothing to do with the multiplayer aspect of your game. I don’t know anything about your game, but let’s talk about chess as an example.
You could make chess either with 2d sprites or UI elements. Neither of these would affect the way you implement multiplayer at all. The multiplayer part of chess involves sending data about the moves the player made over the network to the other player (maybe with a server in between). So for example, you might have a move that is “Black Queen moves to square H2”. That’s the only thing you would be sending over the network. Notice that statement doesn’t include any information about sprites, or UI elements. You could send that same piece of data and draw the result of that on either a bunch of UI elements or on some 2d sprites. That’s what I mean by the presentation (how we draw the game on screen) is independent of the way we implement multiplayer (how we transmit information between the two players).
Oh okay.
It makes so much sense now
I was worried because I spent hours developing this game using Unity UI components and I thought that it could not be multiplayer enabled with UI components
Because my game actually involves physics simulations
It’s Think of a chess board
Except in my game when you select a wrong group of grids ( think of a chess board ), the board collapses and you’ll have to choose a new set of grids
When you choose the right set, the player’s score increases and the wrong selection obviously decreases the player’s score
And the board collapses with each wrong move
Almost like like building blocks…
When you pile them up on top of one another and remove the bottom supporting block, the the top collapses because it foundation was removed
Can a game like that be multiplayer enabled using the unity Canvas?