Search Unity

Make an object disable its rendering when a player enters a separate collider

Discussion in 'Community Learning & Teaching' started by Syzzle, Aug 29, 2015.

  1. Syzzle

    Syzzle

    Joined:
    Mar 15, 2015
    Posts:
    4
    I'm making a horror game, and i need a gameobject to somehow disappear when a player enters a collider, i also need it to play a sound when the object dissapears. I need this to happen only once.

    Preferred Language: c#

    Thanks :)
     
  2. theANMATOR2b

    theANMATOR2b

    Joined:
    Jul 12, 2014
    Posts:
    7,790
    Look into triggers