Verse Library verse

20 Editable Vector Slider

Configures an editable vector3 property with a slider UI in the UEFN editor, including custom min/max bounds, delta steps, and tooltips.

extracted-snippets/documentation/en-us/uefn/editable-properties-in-verse/20-editable-vector-slider.verse

# Source URL: https://dev.epicgames.com/documentation/en-us/uefn/editable-properties-in-verse
# Local doc:  epic-docs/documentation/en-us/uefn/editable-properties-in-verse.md
# Section:    Editable Vector Slider
# An editable vector slider. You can drag to change the values of each of the vector components.
@editable_vector_slider(float):
    # The tool tip for this editable.
    ToolTip := VectorSliderTip

    # The categories this editable belongs to.
    Categories := array{FloatsCategory}

    # Shows the option to preserve the ratio between vector values in the editor.
    ShowPreserveRatio := true

    # Shows the option to normalize the vector in the editor.
    ShowNormalize := true

    # The minimum value of each component. You cannot set an editable value for this number lower
    # than the MinComponentValue.
    MinComponentValue := option{0.0}

    # The maximum value of each component. You cannot set an editable value for this number higher
    # than the MaxComponentValue.
    MaxComponentValue := option{10.0}

    # The amount the slider value increases or decreases per delta.
    SliderDelta := option{0.5}

    # The sensitivity of the mouse movement required to cause a delta increase.
    MouseLinearDeltaSensitivity := 0.25

Sign in free to read the full source 🌴

This Verse Library file is members-only. Create a free account to view the complete source and download the .verse file.

Sign in with Discord

Comments

    Sign in to vote, comment, or suggest an edit. Sign in