Hi, Sorry another newbie question.
I want to write a script that uses VerticalSlider GUI script to control the FPS camera nearClipPlane
I don’t know how to access the camera parameters from the GUI script.
Can any one offer some guidance?
Thanks in advance.
Perhaps I need to offer a little more information,
The vertical slider GUI for example returns a value of say between 0 and 100.
I need to apply this value to the camera near clipping plane in the standard FPS prefab.
Any assistance would be very much appreciated.
Camera.mainCamera.nearClipPlane = value;
Thanks, knew it was something as simple as that. I just couldn’t get it.