Question by
indirivacua · May 07, 2016 at 06:24 PM ·
c#cameradistancedraw
Modify Draw Distance via Script?
I'm making the options menu for my game and I want to add a slider for draw distance, I know this is in the "Camera/Clipping Planes/Far", but I can't find a way for modify it.
I was thinking in a code something like this:
using UnityEngine;
using System.Collections;
public class DrawDistance : MonoBehaviour {
private float drawD = 100f;
void Update(){
*Camera.Far(drawD);*
}
public void AdjustDrawD(float newDrawD){
drawD = newDrawD;
}
}
I know "Camera.Far" doesn't exist, that's why I need help.
Comment