LayerCullDistance





using UnityEngine;

using System.Collections;


public class LayerCullDistance : MonoBehaviour {

void Start() {

Camera camera = GetComponent<Camera>();

float[] distances = new float[32];

distances[0] = 40f;

distances[1] = 40f;

distances[8] = 40f;

distances[10] = 40f;

distances[14] = 40f;

distances[15] = 40f;

camera.layerCullDistances = distances;

}

}


댓글

Designed by JB FACTORY