gmtk-2024/addons/AsepriteWizard/interface/docks/sprite/inspector_plugin.gd

15 lines
325 B
GDScript3
Raw Permalink Normal View History

2024-08-17 14:22:33 +00:00
@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)