1
0
mirror of https://github.com/godotengine/godot.git synced 2025-11-05 12:10:55 +00:00

Autocompletion: Fix type resolution when assigning variant

This commit is contained in:
HolonProduction
2024-05-31 10:19:03 +02:00
parent 019ab8745f
commit 242b5efd9d
3 changed files with 13 additions and 1 deletions

View File

@@ -0,0 +1,5 @@
[output]
include=[
; PackedScene
{"display": "instantiate(…)"},
]

View File

@@ -0,0 +1,5 @@
var list: Array
func spawn_npc() -> void:
var scene: PackedScene = list.pick_random()
scene.