How can I hide an object, when my character is underneath?

Hi,

how can I hide an object, when my character is underneath?

I have this scene:


I want to hide the box, if my char is underneath. I was able to send a debug message, if this is true:

Thanks in advance.

Hi there,

If you have a true or false value, you can easily either use the hidden in game attribute of the object, or assign a transparent material to the object so it can have a degree of visibility. Just remember to reset either of the options you choose once you are back from underneath the object.