Coder Social home page Coder Social logo

Comments (5)

alice-i-cecile avatar alice-i-cecile commented on June 30, 2024

Can you give a bit more context on why you're using this pattern? I'd like to remove sub-apps completely, and want a better sense of the advanced use cases.

from bevy.

anlumo avatar anlumo commented on June 30, 2024

I have a UI system (not bevy's!) and want to display bevy views as UI views, and there might be multiples of them. There's a place in the app where I have to tell bevy to render that specific view to wgpu's queue right now (synchronously), which should be achievable by running sub_app.update();. This shouldn't render the other views, only the one I want right now (because there might be UI elements between two views).

It would be nice to have separate worlds for these views. I thought about using completely separate bevy Apps for this, but then I couldn't share entities when necessary. Also, I'd have to set up all systems for every App again and again.

from bevy.

alice-i-cecile avatar alice-i-cecile commented on June 30, 2024

Okay, so pretty standard multi-world / entity partitioning stuff. Thanks!

As for this issue, please feel free to make a simple PR to expose an API to do so.

from bevy.

Soulghost avatar Soulghost commented on June 30, 2024

I have made a simple PR to expose an API called update_sub_app_by_label to resolve this issue, could you please verify if this is in line with our expectations?

from bevy.

anlumo avatar anlumo commented on June 30, 2024

I have made a simple PR to expose an API called update_sub_app_by_label to resolve this issue, could you please verify if this is in line with our expectations?

Yes, thank you!

from bevy.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.