- Home /
How do I make an object disappear when you look at it
I'm making a horror game and I want an enity/object to disappear when you look at it
Comment
Answer by calmcarrots · May 11, 2014 at 06:45 PM
Make a script using this function and place it on the object. http://docs.unity3d.com/Documentation/ScriptReference/MonoBehaviour.OnBecameVisible.html
OnBecameVisible it probably too wide and generic for the OP's use, anything that camera sees is not really the same as what the player is looking at I$$anonymous$$HO
Answer by getyour411 · May 11, 2014 at 06:26 PM
Raycast & Destroy; please search/read doc references
Your answer
Follow this Question
Related Questions
Is the Player Being Looked at 1 Answer
Horror Game Script (jumpscare) 1 Answer
play a door animation with collider 1 Answer
walking animations for 2d sprites? 0 Answers