Optional: write slider values as they change
A slider can write its changing value to a variable. In 0.86.3.4, this binding property is supported at runtime but does not have a dedicated typed Variable field in the Slider form. Use Raw JSON (Advanced) for it.
1. Create a Number variable art_opacity with initial value 75.
2. Select opacity_slider and open Raw JSON (Advanced). Keep all its existing properties.
3. Immediately after the opening brace, insert the member shown below, with its comma. If variable already exists, edit that value instead of adding a duplicate key.
4. Click Validate and Apply Element JSON (Advanced), then Save Project.
5. Add a Label with Text Live value: $$art_opacity and test it in a running game.
"variable": "art_opacity",Figure 27. The existing element JSON includes a variable member. The Apply button commits the advanced edit.
During gameplay, moving the slider writes a number and refreshes game state. Designer Preview only moves the local slider; it does not update the real runtime variable.
This is a write-out binding. Changing art_opacity with Set Variable does not automatically move an already running slider back to that value.
