Different screen size problem with: Photon Transform View (Classic)
Comments
-
Interesting problem.
I think you may be approaching the issue from the wrong angle. Instead of defining your scene/board through the output / screen, you should make sure your players can move within some boundaries and then instead scale your view to fit the screen.
Then, yes, it will work with a TransformView out of the box.
0 -
Hello Tobias, nowadays i started a new project. This is my first time Instantiating objects in server and play with them. My project is a basketball game. At start of the game, i set positions of rings to the edges of the screens. Result of this, in smaller width device, rings go out of view. Maybe there are some solution to this by photon, or i should define the boundaries of game at the beginning, but the problem is i dont have an idea of max or min common sizes of devices. May be you have an idea to advice me. Thanks.
0 -
You may want to use some fixed size for the simulation of the game, then transform those shared positions into screen-coordinates. Unity or the Unity forum may have some tips on doing that (it's not a networking question, really).
0