Unity C# add slider into editor

C#
[Range(min,max)]
Source

Also in C#: