Answers for "unity custom inspector slider"

C#
2

hos to make slider in editor unity

[Range(0, 100)]
public float NameHere;
Posted by: Guest on July-14-2021
1

unity inspector sliders

public class Example : MonoBehaviour
{
    // This integer will be shown as a slider,
    // with the range of 1 to 6 in the Inspector
    [Range(1, 6)]
    public int integerRange;

    // This float will be shown as a slider,
    // with the range of 0.2f to 0.8f in the Inspector
    [Range(0.2f, 0.8f)]
    public float floatRange;
}
Posted by: Guest on December-06-2021

C# Answers by Framework

Browse Popular Code Answers by Language