I’ve got a project with objects that I need to hide and make visible. I’ve got some scripts that will do this via alpha; but sometimes I’m working with large collection of objects, and assigning it to every single object would take quite a while.
Is there a way to make groups of objects invisible? Perhaps via Camera’s and layers?
Yes, that can be kind of hard to follow. You might have better luck using a variable of type LayerMask, and then using .value to set the mask. Like this (untested):
var myLayerMask : LayerMask; // set this in the inspector
function Start() {
camera.cullingMask = myLayerMask.value;
}