godot_boids/addons/boid_2d/boid_2d.gd

11 lines
197 B
GDScript3
Raw Normal View History

2024-08-19 16:53:54 +03:00
@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")