Files
2025-11-28 18:10:23 +08:00

20 lines
608 B
GDScript

@tool
extends EditorPlugin
const MyCustomGizmoPlugin = preload("gizmos/gizmo.gd")
var gizmo_plugin = MyCustomGizmoPlugin.new(self)
func _enter_tree():
# Initialization of the plugin goes here.
# Add the new type with a name, a parent type, a script and an icon.
add_custom_type("GPUTrail3D", "GPUParticles3D", preload("GPUTrail3D.gd"), preload("bounce.svg"))
add_node_3d_gizmo_plugin(gizmo_plugin)
func _exit_tree():
# Clean-up of the plugin goes here.
# Always remember to remove it from the engine when deactivated.
remove_custom_type("GPUTrail3D")
remove_node_3d_gizmo_plugin(gizmo_plugin)