layerCullDistances not working

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;

 
}

Err… because you’ve commented-out the line that sets it?

Good point. I did that at one point and I forgot to uncomment before I posted, however it’s not working even without that line commented. It just has no effect.