I have the following code:
public class Test : UnityEngine.MonoBehaviour { [Range(0.0f, 1.0f)] // draws a slider restricted to 0.0 <-> 1.0 range in UI