We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I'm trying to instantiate a PackedScene into a GodotWindow
PackedScene
GodotWindow
let loadScene = { (subwindow: Window) -> () in if let scene: PackedScene = GD.load(path: "res://scene_2.tscn") { if let node: Node = scene.instantiate() { subwindow.addChild(node: node) } } } struct ContentView: View { @StateObject var app = GodotApp() var body: some View { VStack { GodotAppView() GodotWindow(callback: loadScene) } .padding() .environmentObject(app) .onAppear(perform: { app.createInstance(scene: "main.pck") }) } }
but it causes GodotAppView to change its scene to scene_2.tscn as well.
GodotAppView
scene_2.tscn
Is there a way to run multiple scenes that are packed into a .pck file?
.pck
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I'm trying to instantiate a
PackedScene
into aGodotWindow
but it causes
GodotAppView
to change its scene toscene_2.tscn
as well.Is there a way to run multiple scenes that are packed into a
.pck
file?The text was updated successfully, but these errors were encountered: