Hi there,
I am currently working on 2D Endless Runner game in Unreal. I am using an Orthographic camera.
When I play the game my obstacle sprites appear behind my platform sprites, when based on their Y value, they should be appearing in front.
Here’s what it looks like in game:
The crate’s Y pos is 100 while the platform’s Y is 0.
When I pause the game and eject myself, this is how it looks, as it should:
Any ideas how to fix this?
Thanks
I was able to find someone else with the same problem and they solved it by doing this:
Settings > Project Settings > Engine > Rendering > Translucency > Translucency Sort policy > “Sort Along Axis”
This worked for me as well!
1 Like
Thank you!!! It was so annoying and I couldn’t find a way to fix it.
nawakman
(Théo Pernel)
June 29, 2021, 9:28pm
5
Thank you so much, you really are the only one that has proposed this solution (a simple tickbox that resolve hours of trouble…)
nawakman
(Théo Pernel)
June 29, 2021, 9:29pm
6
Thank you so much, you really are the only one that has proposed this solution (a simple tickbox that resolve hours of trouble…)
DarkiGG
(DarkiGG)
October 8, 2024, 8:35pm
7
I should mention, as such was the case for me, that sometimes the option “Sort by projection Z” works better. So if this solution does not work, make sure to try out this option too.