2025-12-29 11:54:31 +08:00
|
|
|
@tool
|
|
|
|
|
extends EditorPlugin
|
2025-12-31 13:07:31 +08:00
|
|
|
|
|
|
|
|
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)
|