Files
Factory47/addons/xlib/main.gd

19 lines
431 B
GDScript

@tool
extends EditorPlugin
var pluginDir
func _enable_plugin() -> void:
var plugin_dir = get_script().resource_path.get_base_dir()
func _disable_plugin() -> void:
pass
func _enter_tree() -> void:
var nodes = get_script().resource_path.get_base_dir() + "/nodes"
add_custom_type("XLightingUpdate3D", "Node3D", load(nodes + "/XLightingUpdate3D.gd"), null)
func _exit_tree() -> void:
remove_custom_type("XLightingUpdate3D")