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

13 lines
324 B
GDScript

@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)