godot_osc_demo/toggle_button.gd

6 lines
98 B
GDScript

extends Button
func recv_osc(msg_info, values) -> void:
set_pressed_no_signal(bool(values[0]))