gmtk-2024/addons/AsepriteWizard/interface/docks/sprite/inspector_plugin.gd
2024-08-17 15:22:33 +01:00

14 lines
325 B
GDScript

@tool
extends EditorInspectorPlugin
const APInspectorDock = preload("./sprite_inspector_dock.tscn")
func _can_handle(object):
return object is Sprite2D || object is Sprite3D || object is TextureRect
func _parse_end(object):
var dock = APInspectorDock.instantiate()
dock.target_node = object
add_custom_control(dock)