giants-godot/addons/Trail/plugin.gd
2021-09-08 18:36:41 +02:00

13 lines
404 B
GDScript

tool
extends EditorPlugin
func _enter_tree():
add_custom_type("Trail3D","ImmediateGeometry",preload("res://addons/Trail/trail_3d.gd"),preload("res://addons/Trail/trail3d_icon.svg"))
add_custom_type("Trail2D","Line2D",preload("res://addons/Trail/trail_2d.gd"),preload("res://addons/Trail/trail2d_icon.svg"))
pass
func _exit_tree():
remove_custom_type("Trail3D")
remove_custom_type("Trail2D")
pass