- Home /
Unity Fog Script for a Certain level
I am making water for my level and I was hoping anyone had a script that when the Camera went under, say, 47.7 on the Y axis, it would change to a thick blue-sh fog to simulate that you are underwater,
Many Thanks,
-Will
Answer by Tom01098 · May 21, 2016 at 08:30 PM
If there's one thing I know about Unity Answers, it's that it doesn't like when you ask people to make the game for you.
Something that you really need to succeed in Game Dev is how to tackle a problem.
What effect do you want to achieve?
Break down the effect into pieces that you can tackle individually.
Do the fun bit ;).
For your fog, a simple work around would be to have a semi-transparent blue material appear over the camera when transform.position.y
Your answer
Follow this Question
Related Questions
Looking at an Object (y-axis included) 1 Answer
transform.rotation only y axis? 1 Answer
Mouse axis wont change an integar. 1 Answer
smooth follow only on X and Y 1 Answer
Setting Scroll View Width GUILayout 1 Answer