Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

slider.onchanged in unity


    //A place to store it
    float currentMaxV;
    //Set it
    currentMaxV = sliderX.maxValue;
    //Detect it
    if(sliderX.maxValue > currentMaxV)
    {
        //Slider max value changed
        currentMaxV = sliderX.maxValue;
    }

Source by w3programmers.org #
 
PREVIOUS NEXT
Tagged: #unity
ADD COMMENT
Topic
Name
2+8 =