How to make a slider in the script properties in Unity? For example, if

Public bool 

in the script, in its properties appears checkbox when

 Public int или float 

A field for entering numbers appears. And how to make the slider limited by the minimum and maximum values? For example, to make from -1 to +1 a convenient change.

    1 answer 1

     [Range (3f, 10f)] public float test; 

    And a slider appears in the inspector.