- Home /
Why is the scene upside down?
When I test the game in play mode the scene is just fine, but if I build the game and play it the scene is flipped upside-down. Is there anyway to fix this problem? Thanks in advance...
ID$$anonymous$$ if this is related to the problem, but this happened after I imported some camera effects from Standard Assets.
Is it the scene that is upside down (sounds strange to me), or just the camera rotated around it's z axis 180 degrees, or the camera rendering the scene upside down regardless of rotation?
I know it's strange. it's not the camera though. The image is not rotated upside-down but it's flipped. It works fine in play mode.
$$anonymous$$aybe the orientation in the player settings is upside-down.
Given that you've mentioned image effects, my guess is that it's related to https://docs.unity3d.com/$$anonymous$$anual/SL-PlatformDifferences.html
Are you building for DX or OpenGL?
@tanoshimi You're right, it is related to that. I found out that the problem is on the Global Fog Shader but it is using:
// #if UNITY_UV_STARTS_AT_TOP if (_$$anonymous$$ainTex_TexelSize.y < 0) uv.y = 1-uv.y; #endif //
...to flip the image.
If you have any idea how to fix this problem please help. I'd appreciate your help.
Have you tried uncommenting that line by removing the // ?
I used the // because the line was not showing correctly. It's not used in the actual script.
Answer by Girst · Jun 17, 2017 at 05:02 PM
Got the same prob. Tried to reset player settings but it wont fix anything.
Anybody got a hint how to fix it?
Ok. Problem was a Unity std. asset. Its the global fog script.
Please don't post an answer unless you're attempting to answer the question. The fact that this was caused by global fog was pointed out 6 months ago in the comments above...
Your answer
Follow this Question
Related Questions
Distribute terrain in zones 3 Answers
Build Wrong Scene ? 2 Answers
Unity Scene File in Build Question 1 Answer
How to get the amount of scenes in a build? 1 Answer
Unity3d build problem, mb ? 1 Answer