[Slider]

Displays a numeric field as a slider with configurable range.

Support Types

Type
Description

int

Integer value

float

Float value

Parameters

Parameter Name
Arguments
Description

minValue

float

Minimum slider value.

maxValue

float

Maximum slider value.

minProperty

string

Name of property providing minimum value.

maxProperty

string

Name of property providing maximum value.

Examples

using UnityEngine;
using RenownedGames.Apex;

public class SliderExample : MonoBehaviour
{
    [Slider(0, 10)]
    public float fixedRange;

    public float minLimit = 0;
    public float maxLimit = 100;

    [Slider("minLimit", "maxLimit")]
    public float dynamicRange;

    [Slider("minLimit", 50)]
    public float mixedRange;
}

Last updated