const MyInspectorPlugin = preload("res://addons/your_addon/path/to/your/script.gd") var inspector_plugin = MyInspectorPlugin.new()
func _enter_tree(): add_inspector_plugin(inspector_plugin)
func _exit_tree(): remove_inspector_plugin(inspector_plugin)
Registers a new EditorInspectorPlugin. Inspector plugins are used to extend EditorInspector and provide custom configuration tools for your object's properties. Note: Always use removeInspectorPlugin to remove the registered EditorInspectorPlugin when your EditorPlugin is disabled to prevent leaks and an unexpected behavior.