Refactor the plugin demos to be inside of a project for convenience

This commit is contained in:
Aaron Franke
2020-03-24 03:46:15 -04:00
parent 8464543a23
commit 51c0f3abb8
29 changed files with 158 additions and 22 deletions

View File

@@ -0,0 +1,11 @@
tool
extends EditorPlugin
func _enter_tree():
# When this plugin node enters tree, add the custom type
add_custom_type("Heart", "Node2D", preload("res://addons/custom_node/heart.gd"), preload("res://addons/custom_node/heart_icon.png"))
func _exit_tree():
# When the plugin node exits the tree, remove the custom type
remove_custom_type("Heart")