- Home /
Grow up the farclip in C#
Hi, simple question here. How to grow the camera far clip in C# ? I've a script that require an higher far clip ONLY when you find all the necessary stuffs.
Here a piece of my code :
IEnumerator PlaySound(){
AudioListener.pause = true;
audio.clip = DANCE;
audio.ignoreListenerPause = true;
audio.Play ();
Instantiate(win);
GameObject.Destroy(map.gameObject);
RenderSettings.fog = revertFogState;
//Grow Camera Farclip here.
yield return new WaitForSeconds(audio.clip.length);
AudioListener.pause = false;
}
Comment
Best Answer
Answer by tanoshimi · Jul 03, 2014 at 01:04 PM
Thanks but it does nothing. $$anonymous$$aybe it's beacause I have two cameras on my scene ? EDIT : Forgot to assign camera --' Thanks !