← Back to list

Simple slider movement on mouse click

First create a widget and add a slider anywhere you want. Make sure you anchor at the right place. Then create binding at the “value”…

ayesha ashraf malik · 2022-06-28 08:35 · 0 claps · 1.2 min read
#ue4
Open on Medium ↗

Simple slider movement on mouse click

First create a widget and add a slider anywhere you want. Make sure you anchor at the right place. Then create binding at the “value” section.

Make it look pretty or whatever.

Go to the graph editor and well add event on capture begin.

Add the coddddeeee

It’s simple, when its pressed the first time it adds 100 to the value when pressed again it subtracts 100.

Then add the widget to the viewport.

Make sure you created a variable that stores the value of slider. I called it position because well it stores the position.

and ta-da its done.

Demo

[embed]

Next i will learn how to animate the slider, so stay tuned.

Goodbye for now.


메타데이터
post_id
770fca2baa81
slug
simple-slider-movement-on-mouse-click-770fca2baa81
url
https://medium.com/@ayeshaashrafmalik/simple-slider-movement-on-mouse-click-770fca2baa81
canonical_url
https://medium.com/@ayeshaashrafmalik/simple-slider-movement-on-mouse-click-770fca2baa81
author_url
https://medium.com/@ayeshaashrafmalik
status
ok
fetched_at
2026-06-14 11:28:49