Hi all, i was wondering if some one could help me. Basically the question is i have a object and it has a layer on it called wall. Now what i want is you see how the camera has a Culling Mask and it allows to to pick what layers the camera will avoid how can i do this to an normal object so it can avoid objects that have layers on them please help me thank you very much in advance :) MCHALO
You simply select the layer that particular object is in. For a GameObject, look in the inspector, second line from the top. By default, it'll be in the "Default"-layer. Expand that dropdown and select another layer, then remove that other layer from the Camera's culling mask. That camera now no longer renders that object.
For the usage of Layers in collision detection, you can refer to this article, from Unity's documentation: