2D setup

I’m setting up a 2D game with an orthographic camera. I want to use a plane as the background and my coordinate system should be X to the right, Y to the top and Z out of the screen. When I add a plane to my scene it comes in at a different orientation and has to be rotated to see it - or the camera needs to be moved around. Is there a way to force Unity into “2D game mode” with some initial coordinate system setup so I can bring in my assets without messing with their rotation, etc?

What is the best strategy for setting up a 2D game without using a lot of transformations?

Thanks in advance,

Brian

Unity uses a left-handed coordinate system, so I don’t think you’ll be able to get z out of the screen, as you describe. (AFAIK at least, there isn’t any way to change the handedness of the coordinate system.)

Assuming these features aren’t already present or planned, I personally would love it if there were options for coordinate-system handedness and for which axis is considered ‘up’ in the editor. As things are now though, for 2-d games I basically do what you describe: orient things as necessary so that gameplay can take place in the XY plane. It’s not ideal, but I haven’t had any real problems with this approach so far.

up is Y
forward is Z
right is X

there is no way to change it and I don’t think there will cause the whole maths etc under the hood depend on it.

Also its not really required.
Want the other handedness → use - instead of + if you modify z coordinates for depth or whatever
For a 2d environment the handedness should really be of no importance, if further behind means +z or -z is unimportant.

Actually the way it is in unity is even better, because that way you can directly relate z coordinates to “virtual layer indices”. For example z = 0 → layer 0, z = 10 → layer 1, … z = 120 → layer = 12 if we assume a z range of 10 per virtual layer

i second that, about using the Z axis coordinates as layers… that way X and Y remain the classing left and right and up and down