Forum rules - please read before posting.

How can I show int variables on the slider?

Slider affects only can set to the float variable.But I have some int variables wait to show.How can I do this?

Comments

  • edited September 2022

    There are two ways around this:

    1. Create separate Float and Integer variables, have the Slider affect the Float variable, and then use the Variable: Copy Action to copy the Float's value to the Integer. This will round down the Float's value to the nearest Integer. If the Menu uses AC as its Source, you can use the Slider element's Number of steps property to have it move by discrete values.
    2. Using Unity UI as the Menu's Source, check the UI Slider component's Whole Numbers property. You can use a single Float variable, but it will then only have Integer values.
Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Welcome to the official forum for Adventure Creator.