15 lines
389 B
GDScript
15 lines
389 B
GDScript
@tool
|
|
extends EditorPlugin
|
|
|
|
var inspector_plugin
|
|
|
|
func _enter_tree() -> void:
|
|
inspector_plugin = preload("res://addons/reedscene/act/ActManagerInspector.gd").new()
|
|
# ✅ 注入 EditorInterface
|
|
inspector_plugin.editor_interface = get_editor_interface()
|
|
add_inspector_plugin(inspector_plugin)
|
|
|
|
func _exit_tree() -> void:
|
|
if inspector_plugin:
|
|
remove_inspector_plugin(inspector_plugin)
|