0 votes

I've just read the https://godotengine.org/article/core-refactoring-progress-report-2.
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?

asked Mar 29 in Engine by marvinguo (14 points)
retagged Mar 29 by marvinguo

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.

answered Mar 29 by Zylann (26,153 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 How to use this Q&A? before posting your first questions.