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