- Home /
How to make a cube that is a different colour when you step inside?
I want to make a cube that will sit underneath my water, so what when I walk 'into' the water (and am underneath it, everything is a slightly different colour. Is this possible? And if so, how? Thanks!
Answer by pankajb · May 16, 2016 at 02:09 PM
I think this question has already been answered http://answers.unity3d.com/questions/442734/how-do-i-make-the-area-under-my-water-a-plane-look.html
Answer by Krazy0range · Dec 31, 2020 at 05:19 PM
You can give the cube a box collider, and check isTrigger. Then give it a script that makes it turn a different color using OnTriggerEnter
or OnTriggerStay
.
Your answer
Follow this Question
Related Questions
how do you make a 3d person or object? 2 Answers
SQLite in Unity 4.x? 0 Answers
how to open probuilder basic 1 Answer
How do i make my player jump from an angle? (Wallrun Jump) 1 Answer
How to make atmospheric dust particles? 4 Answers