The kat Hiding walls system


Start the game and detect the camera and the player and cast a ray from the camera to the player


Get Item or group of items "child of the main game object in the hierarchy " and check if the main parent of a close item is hit by the ray. 


Change the parent or single object material to the translucent (lower opacity in the alpha channel) material created previously 


If the target is not hit by the ray anymore unhide it and change its material to the original one.


function to unhide all items in case of no contact with the ray cast