mirror of
https://github.com/Relintai/broken_seals_2ds.git
synced 2024-12-25 11:17:13 +01:00
15 lines
248 B
GDScript
15 lines
248 B
GDScript
tool
|
|
extends ViewportContainer
|
|
|
|
export(NodePath) var container_path : NodePath
|
|
|
|
var _container : Node
|
|
|
|
func _ready() -> void:
|
|
_container = get_node(container_path)
|
|
|
|
func preview(n: Node2D) -> void:
|
|
_container.add_child(n)
|
|
n.owner = _container
|
|
|