ess_data/previews/ControlPreview.gd
2019-12-20 01:05:20 +01:00

15 lines
249 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: Control) -> void:
_container.add_child(n)
n.owner = _container