Per-layer culling distances.
function Start () { var distances = new float[32]; // Set up layer 10 to cull at 15 meters distance. // All other layers use the far clip plane distance. distances[10] = 15; camera.layerCullDistances = distances; }
using UnityEngine; using System.Collections; public class Example : MonoBehaviour { void Start() { float[] distances = new float[32]; distances[10] = 15; camera.layerCullDistances = distances; } }
import UnityEngine import System.Collections public class Example(MonoBehaviour): def Start() as void: distances as (float) = array[of float](32) distances[10] = 15 camera.layerCullDistances = distances