27 lines
597 B
C#
27 lines
597 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class Temp_CameraView : MonoBehaviour {
|
|
|
|
public Camera MainCamera;
|
|
public Slider CameraViewSlider;
|
|
public Text Text;
|
|
// Use this for initialization
|
|
void Start () {
|
|
Text.text = MainCamera.farClipPlane.ToString();
|
|
CameraViewSlider.value = 0.35f;
|
|
CameraViewSlider.onValueChanged.AddListener((value) =>
|
|
{
|
|
MainCamera.farClipPlane = 25 + value * 500;
|
|
Text.text = MainCamera.farClipPlane.ToString();
|
|
});
|
|
}
|
|
|
|
// Update is called once per frame
|
|
void Update () {
|
|
|
|
}
|
|
}
|