Skip to content
New issue

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

Fix effect properties ignored #312

Merged
merged 1 commit into from
Apr 5, 2024
Merged

Fix effect properties ignored #312

merged 1 commit into from
Apr 5, 2024

Conversation

djeedai
Copy link
Owner

@djeedai djeedai commented Apr 5, 2024

Fix effect properties being ignored because there's no EffectProperties component (and no code to auto-spawn it, despite the documentation stating otherwise). Require the component instead to be added always, and add it to ParticleEffectBundle. The alternative of auto-spawning is rendered complex by the fact the decision requires inspected the EffectAsset's Module looking for properties, which requires multiple levels of indirection, so would be rather expensive to execute each frame on effects which doesn't require the component (so keep not having it and require to be re-checked each frame).

Fixes #309

Fix effect properties being ignored because there's no
`EffectProperties` component (and no code to auto-spawn it, despite the
documentation stating otherwise). Require the component instead to be
added always, and add it to `ParticleEffectBundle`. The alternative of
auto-spawning is rendered complex by the fact the decision requires
inspected the `EffectAsset`'s `Module` looking for properties, which
requires multiple levels of indirection, so would be rather expensive to
execute each frame on effects which doesn't require the component (so
keep not having it and require to be re-checked each frame).

Fixes #309
@djeedai djeedai added C - bug Something isn't working C - breaking change A breaking API or behavior change A - components Change related to an ECS component A - expressions Change related to the Expression API labels Apr 5, 2024
@djeedai djeedai merged commit 6c7425a into main Apr 5, 2024
12 of 13 checks passed
@djeedai djeedai deleted the u/effect-prop branch April 5, 2024 18:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A - components Change related to an ECS component A - expressions Change related to the Expression API C - breaking change A breaking API or behavior change C - bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Properties not being set properly
1 participant