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