> For the complete documentation index, see [llms.txt](https://ferdowsur.gitbook.io/modular-3d-text/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ferdowsur.gitbook.io/modular-3d-text/ui/slider/script-documentation/updatevalue.md).

# UpdateValue

Method in Slider.cs

## *<mark style="color:yellow;">**UpdateValue**</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">(int</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">**newValue**</mark><mark style="color:yellow;">)</mark>*

*This is the same as setting the **CurrentValue** directl&#x79;**.***

## *<mark style="color:yellow;">**UpdateValue**</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">(float</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">**newValue**</mark><mark style="color:yellow;">)</mark>*

*This is the same as setting the **CurrentValue** directl&#x79;**.***

## *<mark style="color:yellow;">**UpdateValue**</mark> <mark style="color:yellow;"></mark><mark style="color:yellow;">()</mark>*

*This is the same as setting the **CurrentValue** to its current valu&#x65;**.***\
*This can be used to update the slider's graphic and call the appropriate events in case they weren't called without actually changing the **CurrentValue**.*

{% content-ref url="/pages/KZFjoW0wy61ozzgofroz" %}
[Script documentation](/modular-3d-text/ui/slider/script-documentation.md)
{% endcontent-ref %}
