Search Unity

Question How to code slider to change a float

Discussion in 'Scripting' started by huntergotoole, Oct 12, 2021.

  1. huntergotoole

    huntergotoole

    Joined:
    Sep 10, 2021
    Posts:
    13
    I have a public float attached to my camera and I want to make it a slider. I cant figure out how I would write out my method to accomplish this. Thanks in advance!
     
  2. Since you posted this question in the Unity Hub section, which has nothing to do with it: where do you want that slider? In the editor (inspector) or "in game" (on UI)?