The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates. | Twitter

0 votes

I've just read the
My understanding is godot can draw its own window which has its own scene tree. The gettree().getroot() is a window object now.

My question is , each window has its own scene tree, can it load different pcx files?
Or can I load multiple pck resouce file at the same time, play each game in different windows, play them at the same time?

in Engine by (14 points)
retagged by

1 Answer

0 votes

I don't know what you mean by "pcx file", but I'd note that it's very likely each window does not have its "own scene tree", but they rather own a branch of the same scene tree:

- MainWindow <-- viewport
    - CurrentScene
        - Sprite
        - Sprite2
        - SubWindow1 <-- viewport
            - Control
                - ....
        - SubWindow2 <-- viewport
            - Control
                - ....

So it's almost the same than having those subwindows being WindowDialogs like now, really. Almost nothing changes, except viewports can now render in other windows. This may also be quite relevant to the "emulated window system" feature, for platforms where native windows are not supported.

by (29,360 points)
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.