Godot Version
4.7
Ask your question here! Try to give as many details as possible.
If you share code, please wrap it inside three backticks or replace the code in the next block:
extends Node
var progress
var sceneName = "res://strange/Stranger.tscn"
var sloadsts = 0
@onready var label: Label = $CanvasLayer/Label
func _ready() -> void:
sceneName = "res://Stranger.tscn"
ResourceLoader.load_threaded_request(sceneName)
func _process(_delta: float) -> void:
# progress = ResourceLoader.load_threaded_get_status(sceneName, progress)
# print(sloadsts)
# label.text = str(floor(progress[0]+100)) + "%"
if ResourceLoader.THREAD_LOAD_LOADED:
var new = ResourceLoader.load_threaded_get(sceneName)
get_tree().change_scene_to_packed(new)