-
-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathplugin.gd
More file actions
19 lines (14 loc) · 608 Bytes
/
plugin.gd
File metadata and controls
19 lines (14 loc) · 608 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
@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)