How to access ECS data from render graph nodes? #5030
Unanswered
KislyjKisel
asked this question in
Q&A
Replies: 1 comment
-
Essentially you need to inject the data you need from the render node into the render world, one way or another, during the extract phase. That means either via a resource or via components on entities. Then you can read it back like you'd do for a normal system since the prepare and queue phases access the render world by default, not the app one. So just make a query. One subtlety here is the use of lifetimeless accessors like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
After extracting/preparing ECS data, what should I do to pass it to render graph node? Using
&World
to retrieve data is only possible when using resources or "manual" functions, but they require an entity. In sources I've found the entity was taken from an input slot connected toVIEW_ENTITY
. I assume for custom entities other outputs are needed?Beta Was this translation helpful? Give feedback.
All reactions