- Home /
under water fog
hi every one
I'm new to programming and I need a script (if possible) so that when an object the character is touching an object/water it enables the fog and when its not disables the fog.
Answer by Josmun · May 31, 2012 at 10:46 AM
ScriptReference is your friend
just add this line to any script and add to any object in your project
// Enable fog
RenderSettings.fog = true;
you can also access manually to the Edit/Render Settings menu. Just inspect the inspector :-)
Answer by AceTrip_RecapIt · May 31, 2012 at 04:23 PM
Hi Guy, There is something insteresting for you here: http://answers.unity3d.com/questions/38653/breathing-underwater.html
And as Josmun said "ScriptReference is your friend"
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Trying to change fog when entering a collider trigger! 0 Answers
Water Shader Reflection & Transparency Distance 0 Answers
underwater fog script 1 Answer
How do I know if an object is seen? (not when it renders) 1 Answer