brackeys-12/components/Triggerer/editor.gd
2024-09-08 13:34:41 -04:00

8 lines
261 B
GDScript

@tool
extends EditorPlugin
func _enter_tree():
add_custom_type("TriggerReceiver", "Node", preload("res://components/Triggerer/trigger_receiver.gd"), preload("res://components/Triggerer/antenna.svg"))
func _exit_tree():
remove_custom_type("TriggerReceiver")