godot_boids/addons/boid_2d/boid_2d.gd
2024-08-19 16:53:54 +03:00

11 lines
197 B
GDScript

@tool
extends EditorPlugin
func _enter_tree() -> void:
add_custom_type("Boid2D", "Area2D", preload("boid.gd"), preload("boid_2d.svg"))
func _exit_tree() -> void:
remove_custom_type("Boid2D")