Skip to content

How to load/preload a scene? #46

Closed Answered by Splizard
Ullanar asked this question in Q&A
Discussion options

You must be logged in to vote

For sure!

var scene = gd.Load[gd.PackedScene](a.Temporary, "res://scenes/main.tscn")
main_scene := scene.Instantiate()

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@Ullanar
Comment options

Answer selected by Splizard
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants