mirror of
https://github.com/godotengine/godot-demo-projects.git
synced 2026-01-07 08:20:11 +01:00
15 lines
609 B
GDScript
15 lines
609 B
GDScript
tool
|
|
extends EditorPlugin
|
|
|
|
func _enter_tree():
|
|
# When this plugin node enters tree, add the custom types
|
|
add_custom_type("Node25D", "Node2D", preload("Node25D.cs"), preload("icons/node_25d_icon.png"))
|
|
add_custom_type("YSort25D", "Node", preload("YSort25D.cs"), preload("icons/y_sort_25d_icon.png"))
|
|
add_custom_type("ShadowMath25D", "KinematicBody", preload("ShadowMath25D.cs"), preload("icons/shadow_math_25d_icon.png"))
|
|
|
|
func _exit_tree():
|
|
# When the plugin node exits the tree, remove the custom types
|
|
remove_custom_type("ShadowMath25D")
|
|
remove_custom_type("YSort25D")
|
|
remove_custom_type("Node25D")
|