3D Axis inverted on Android
Hi everyone, i'm creating a 2D-game with 3D objects. But I have some problem with the axis once compiled on Android. For example, my trail renderer is over every objects on the scene once compiled. But my main problem is for basic objects such as cubes.
My android device doesn't keep the same 3D perspective : a cube A under another cube B in the inspector will be shown as if A was over B..
I'm creating my big objects with small cubes directly in Unity. Maybe I should do it with C4D and then importing the big objects in unity..
I'm not sure about where does my problem come from. I have several potential reasons : First, I began by setting my project as 2D project, maybe I should have used 3D directly ( because I'm now working exclusively in 3D )?
I'm using a custom shader (Minimalist Shader free asset ), so this could be the cause with Platform differences (https://docs.unity3d.com/Manual/SL-PlatformDifferences.html). But i'm not sure this is the problem ( I don't know how to recognize if this is the problem ).
I know I would have to try all by myslef instead of asking here but it is very long to compile and test on the device, so if someone had already this problem it would be really easier. I will attached screenshots, one of the editor and the expected perspective, and one of my android render.
Solution :
Partial because i'm not sure about the origin of the problem. It is problem due to the fact I changed the axis used by my game in order to go from 2D to 3D. I had to set Project Settings > Default Behavior Mode to 3D. I'm still not sure about why this wasn't enough to solve the problem.. And what solved my problem is Projects Settings > Graphic Settings > Camera Settings : Transparency sort mode set to custom Axis Transparency Sort Axis set to (X = 0, Y = 1, Z = 0).
Your answer
![](https://koobas.hobune.stream/wayback/20220612165825im_/https://answers.unity.com/themes/thub/images/avi.jpg)