API reference
Preparing search index…

ImGui.SliderAngle

  • Edit an angle stored in radians using a slider displayed in degrees.

    Parameters

    label
    string | Uint8Array

    Widget label; interactive widgets also use it for ID generation. A ## suffix can distinguish IDs without displaying the suffix.

    v_rad
    Float32Array

    Angle stored in radians in Float32Array[0]; the widget displays degrees and writes radians back. Pass Float32Array storage, not a JS scalar; native access uses the supplied backing memory.

    Returns

    boolean

    True if the widget changed the supplied value; false if it remained unchanged.

    Implied v_degrees_min = -360.0, v_degrees_max = +360.0, format = "%.0f deg", flags = 0

    Source & inheritance

Icons made by Lorc, Delapouite & Skoll · game-icons.net · CC BY 3.0