- Home /
Question by
rhaque · Dec 11, 2018 at 07:59 AM ·
multiplayerfpsslideroptionsfield of view
How to add the option to change field of view through using a slider in a game option menu?
I have a project of creating a multiplayer FPS and I am trying to make the options menu for it. I don't understand how I can use a slider in game to change the the FOV of the camera from the options menu.
Comment
Answer by mlnczk · Dec 11, 2018 at 08:21 AM
public Slider fovSlider;
public void SubmitButton{
Camera.main.fieldOfView = fovSlider.value;
}
You can make slider range of values, add a public method to the button that will accept player fov changes and it should apply like I wrote above.
Your answer
Follow this Question
Related Questions
Multiplayer FPS Tutorial 1 Answer
Bullet owner network (javascript) 0 Answers
[CLOSED]RaycastAll Help 1 Answer
Wacky issue with multiplayer FPS tutorial 1 Answer
can firebase real-time database be used on a pc standalone game? 0 Answers