Hello,
I’m trying to set a custom culling distance for a layer and it just isn’t working at all. It does nothing. I’ve even tried setting them for all 32 layers in the array and still no effect whatsoever. Any thoughts as to what could cause this? code below is from a script attached to my scene main camera. Thanks
float[] distances = new float[32];
// Use this for initialization
void Start()
{
for (int x = 0; x < 32; x++)
{
distances[x] = 12;
}
// distances[12] = 15;
Camera mainCamera = this.gameObject.GetComponent<Camera>();
// mainCamera.layerCullDistances = distances;
}