mirror of
https://github.com/Relintai/utilities_gamedev.git
synced 2024-12-21 13:56:59 +01:00
15 lines
249 B
GDScript3
15 lines
249 B
GDScript3
|
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
|
||
|
|