> For the complete documentation index, see [llms.txt](https://fast-studios.gitbook.io/press-e/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://fast-studios.gitbook.io/press-e/manual/scripting/interactable/interactable.getslidervalue.md).

# Interactable.GetSliderValue

<mark style="color:blue;">public float</mark> <mark style="color:yellow;">GetSliderValue</mark>()

<mark style="color:blue;">public void</mark> <mark style="color:yellow;">GetSliderValue</mark>(<mark style="color:blue;">out float</mark> <mark style="color:$primary;">sliderValue</mark>)

When using a **Slider** in [Drag](/press-e/manual/components/interactable/drag.md), these overloads return/expose the current slider value.

```csharp
public Interactable interactable;
public TMP_Text tmpText;

public void ApplyingToText()
{
    // Option 1: return value
    float actualSliderValue = interactable.GetSliderValue();
    tmpText.text = actualSliderValue.ToString();
    
    // Option 2: out parameter
    interactable.GetSliderValue(out float actualSliderValue);
    tmpText.text = actualSliderValue.ToString();    
}
```
