broken_seals_2d/game/addons/data_manager/previews/SpatialPreview.gd

15 lines
249 B
GDScript3
Raw Normal View History

2020-07-08 23:25:40 +02:00
tool
extends ViewportContainer
export(NodePath) var container_path : NodePath
var _container : Node
func _ready() -> void:
_container = get_node(container_path)
func preview(n: Spatial) -> void:
_container.add_child(n)
n.owner = _container