how to add slider in tool mode?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By CakeLover

I’m trying to add a slider in tool mode like this:

enter image description here

code:

tool
extends Position2D

export(float) var CustomSlider = 0.1 setget changeSlider_x

func changeSlider_x(changed_val):
	CustomSlider=changed_val
:bust_in_silhouette: Reply From: CakeLover

solution is here:

export(float, 0, 10) var CustomSlider: