mirror of
https://github.com/godotengine/godot
synced 2024-09-04 21:38:30 +00:00
Merge pull request #86973 from HolonProduction/tests-batch-1
Add tests for `get_node` autocompletion
This commit is contained in:
commit
7be96a55c4
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
signal signal_of_a
|
||||
|
||||
var property_of_a
|
||||
|
||||
func func_of_a():
|
||||
pass
|
|
@ -0,0 +1,19 @@
|
|||
[gd_scene load_steps=2 format=3 uid="uid://c8wekfd5ql7bc"]
|
||||
|
||||
[ext_resource type="Script" path="res://completion/class_a.notest.gd" id="1_ldc4g"]
|
||||
|
||||
[node name="GetNode" type="Node"]
|
||||
|
||||
[node name="AnimationPlayer" type="AnimationPlayer" parent="."]
|
||||
|
||||
[node name="UniqueNames" type="Node" parent="."]
|
||||
|
||||
[node name="UniqueAnimationPlayer" type="AnimationPlayer" parent="UniqueNames"]
|
||||
unique_name_in_owner = true
|
||||
|
||||
[node name="UniqueA" type="Node" parent="UniqueNames"]
|
||||
unique_name_in_owner = true
|
||||
script = ExtResource("1_ldc4g")
|
||||
|
||||
[node name="A" type="Node" parent="."]
|
||||
script = ExtResource("1_ldc4g")
|
|
@ -1,4 +0,0 @@
|
|||
[output]
|
||||
include=[
|
||||
{"display": "autoplay"},
|
||||
]
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
%AnimationPlayer.➡
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
$UniqueAnimationPlayer.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
$A.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
$AnimationPlayer.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
%UniqueA.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,4 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
%UniqueAnimationPlayer.➡
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test := $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test := $A
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test := $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test = $A
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,12 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,7 @@
|
|||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test: A = $A
|
||||
test.➡
|
|
@ -0,0 +1,12 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test: AnimationPlayer = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,7 @@
|
|||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
func a():
|
||||
var test: A = $A
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test: AnimationPlayer = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
# TODO
|
||||
extends Node
|
||||
|
||||
func a():
|
||||
var test: Node = $A
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
# TODO
|
||||
extends Node
|
||||
|
||||
func a():
|
||||
var test: Node = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,20 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; Area2D
|
||||
{"display": "get_overlapping_areas"},
|
||||
{"display": "linear_damp"},
|
||||
{"display": "area_entered"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test: Area2D = $A
|
||||
test.➡
|
|
@ -0,0 +1,20 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; Area2D
|
||||
{"display": "get_overlapping_areas"},
|
||||
{"display": "linear_damp"},
|
||||
{"display": "area_entered"},
|
||||
]
|
||||
exclude=[
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,5 @@
|
|||
extends Node
|
||||
|
||||
func a():
|
||||
var test: Area2D = $AnimationPlayer
|
||||
test.➡
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,7 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test := $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test := $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test := $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,12 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
var test: A = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,12 @@
|
|||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -2,5 +2,5 @@ extends Node
|
|||
|
||||
var test: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func _ready():
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,8 @@
|
|||
extends Node
|
||||
|
||||
const A := preload("res://completion/class_a.notest.gd")
|
||||
|
||||
@onready var test: A = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,14 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: AnimationPlayer = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,16 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Node = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,16 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
]
|
||||
exclude=[
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Node = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,20 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; Area2D
|
||||
{"display": "get_overlapping_areas"},
|
||||
{"display": "linear_damp"},
|
||||
{"display": "area_entered"},
|
||||
]
|
||||
exclude=[
|
||||
; GDScript: class_a.notest.gd
|
||||
{"display": "property_of_a"},
|
||||
{"display": "func_of_a"},
|
||||
{"display": "signal_of_a"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Area2D = $A
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -0,0 +1,20 @@
|
|||
[input]
|
||||
scene="res://completion/get_node/get_node.tscn"
|
||||
[output]
|
||||
include=[
|
||||
; Node
|
||||
{"display": "add_child"},
|
||||
{"display": "owner"},
|
||||
{"display": "child_entered_tree"},
|
||||
|
||||
; Area2D
|
||||
{"display": "get_overlapping_areas"},
|
||||
{"display": "linear_damp"},
|
||||
{"display": "area_entered"},
|
||||
]
|
||||
exclude=[
|
||||
; AnimationPlayer
|
||||
{"display": "autoplay"},
|
||||
{"display": "play"},
|
||||
{"display": "animation_changed"},
|
||||
]
|
|
@ -0,0 +1,6 @@
|
|||
extends Node
|
||||
|
||||
var test: Area2D = $AnimationPlayer
|
||||
|
||||
func a():
|
||||
test.➡
|
|
@ -139,7 +139,7 @@ static void test_directory(const String &p_dir) {
|
|||
|
||||
Node *owner = nullptr;
|
||||
if (conf.has_section_key("input", "scene")) {
|
||||
Ref<PackedScene> scene = ResourceLoader::load(conf.get_value("input", "scene"), "PackedScene");
|
||||
Ref<PackedScene> scene = ResourceLoader::load(conf.get_value("input", "scene"), "PackedScene", ResourceFormatLoader::CACHE_MODE_IGNORE_DEEP);
|
||||
if (scene.is_valid()) {
|
||||
owner = scene->instantiate();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue