godot_osc_demo/Slider.gd

10 lines
251 B
GDScript

extends VSlider
func recv_osc(val, msg_info):
print("Sender IP: %s" % msg_info["ip"])
print("Sender Port: %d" % msg_info["port"])
print("Adress: %s" % msg_info["address"])
print("Types: %s" % msg_info["types"])
set_value(clampf(val, 0.0, 1.0))