Position a Canvas/Panel outside the screen
I'm making a 2D strategy game ( Think of a digital board game). The game has two parts, several menus and a "map" with a bunch of icons that you click on or drag around. These icons are basically buttons. So, I thought that instead of doing them as normal sprites in the game world, I can simply make them UI buttons.
I've created two canvases, one for menus and one for the "map", but it doesn't seem that I can move the canvas so I can have them both side by side. I tried making a Panel for the "map" instead of it being its own canvas ( not sure how efficient that is ) but when I tried to move the Panel its behaviour was very weird, it was as if I was scaling it instead of moving it, it kept stretching out.
So my question is, is there a way I can have two canvases or panels one for the menus and another for the "map" side by side so I can see and edit both parts of my game at the same time?
Answer by tormentoarmagedoom · Feb 09, 2020 at 01:00 PM
Hello There.
Yes, you can, just adjust each Canvas, but i think is not a good idea. If you pretend to drag things, as canvas have rest transform (not transform) you can have some problems..
MAybe should be a good decision to have the borad as a gameobject and the panel as a canvas.
You should make some test to decide whats better.
Thanks, Canvases and UI in unity are confusing. I might just use normal Gameobjects for simplicity.
Your answer
Follow this Question
Related Questions
[SOLVED] Image is not visible in Panel (in game view) 0 Answers
Adding a single colored 2d panel in a 3d game 2 Answers
A object closer to camera than B object, but A object is behind B and is not visible 1 Answer
Screen Format Question (Panels) 1 Answer
Resize UI Panel to the same size as its parent Canvas through code 0 Answers