slider unity inspector code example Example: create a slider in the inspector C# [Range(0.0f, 10.0f)] public float mySliderFloat;