top of page

The kat Hiding walls system

HideWalls1.png

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

HideWalls2.png

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. 

HideWalls3.png

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

HideWalls4.png

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

HideWalls5.png

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

bottom of page