Comments (6)
Just for tracing the PR for the website example is here
from bevy.
I'm still learning the intricacies of rust, but I wager I can at least make a simple implementation of this functionality. At the very least I'm going to give it my best ❤️
from bevy.
Awesome, thanks! Let us know if you need any help.
from bevy.
From a failure to compile on the examples, I found this chunk of code in the Observers example
(examples/ecs/observers.rs:93-98
)
commands
.spawn(Mine::random(&mut rng))
// Observers can watch for events targeting a specific entity.
// This will create a new observer that runs whenever the Explode event
// is triggered for this spawned entity.
.observe(explode_mine);
This seems to imply the desired functionality has already been merged? Unless I'm misunderstanding, which is definitely possible.
from bevy.
Oh! I must have misinterpreted the API: it was changing last minute. Are you able to verify and then update the example at https://github.com/bevyengine/bevy-website/blob/main/release-content/0.14/release-notes/10756_hooks_and_observers.md for me @QueenOfSquiggles?
from bevy.
Sure thing @alice-i-cecile . I'll get that started in a bit here
from bevy.
Related Issues (20)
- Replace `RemovedComponents` with observers
- Placeholder: Clean up remaining primitives in bevy_render HOT 1
- World::inspect_entity should return an iterator, not Vec
- Add i64 and u64 implementations for bevy_render::render_resource::ShaderType HOT 2
- CI tasks `check-compiles` and `build` could use better names HOT 1
- Improve `CommandQueue has un-applied commands being dropped.` warning message
- Resolve overlap between `bevy_render` primitives and `bevy_math` primitives
- `AssetServer` panics when loading folder
- State changes appear to have system order ambiguities HOT 9
- Sysinfo plugin does not compile without `multi_threaded` feature HOT 2
- Segfault on exit with `multi_threaded` feature disabled on Wayland after wgpu 0.20
- Extension traits are re-exported by name
- WASM perf regression: App updates triggered by input events HOT 2
- UiSystem::Layout is run too late in the schedule HOT 4
- `OnEnter` state schedules are now executed immediately HOT 10
- Styling regression: ButtonBundle background color HOT 5
- Current tracy deps don't follow compatibility table HOT 9
- Component Hook functions as attributes for Component derive macro
- Fragment Stage Exceeds Maximum Sampled Textures Limit on the web
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bevy.