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

14 lines
324 B
GDScript3
Raw Permalink Normal View History

2024-08-17 14:22:33 +00:00
@tool
extends EditorInspectorPlugin
const ASInspectorDock = preload("./animated_sprite_inspector_dock.tscn")
func _can_handle(object):
return object is AnimatedSprite2D || object is AnimatedSprite3D
func _parse_end(object):
var dock = ASInspectorDock.instantiate()
dock.target_node = object
add_custom_control(dock)