+ 2

Is there a way to force 2D rendering in Unity?

I am trying to make a 2D game but I'm worried that while working in a 2D perspective, my game will be under heavy performance issues because it is still technically a 3D environment, which is unnecessary in my case. So maybe there is a way to force 2D rendering in C#? I hope that a solution for this won't effect the layers that are rendered. Also, I think that 2D rendering will improve lighting, since the computer won't have to render it in all directions.

27th Sep 2017, 7:05 PM
raincloud
3 Réponses
+ 4
You should probably just use sprites. Using 3d components in 2d will cause issues if you rely on the physics. (That's likely going to be a bigger issue than performance). Perhaps try setting the cameras rendering path to 'forward rendering' if you do not use lots of lights on your scene. Hopefully this can be of any assistance? http://answers.unity3d.com/questions/458022/render-3d-object-to-a-2d-texture-at-runtime.html
27th Sep 2017, 8:54 PM
Rrestoring faith
Rrestoring faith - avatar
+ 1
No, unity does not have a dedicated 2D engine. However, Godot engine does and i highly recommend checking it out!
27th Sep 2017, 7:57 PM
Edhi7
Edhi7 - avatar
0
Thank you for clarifying! I don't plan on using 3d objects at all, so this is great news. I don't have a high end computer which means I would be dealing with performance issues, but I like knowing that I can change how things are processed though code.
28th Sep 2017, 8:46 PM
raincloud