-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
instantiateRenderEntity sets up render assets on render components #4039
Conversation
mvaligursky
commented
Feb 22, 2022
•
edited
edited
- When an Entity hierarchy was created using GlbContainer.instantiateRenderEntity, the render component didn't have .asset property set up. This is now fixed, and those properties point to a render assets.
Wait, what's the type of the resource of a render asset? e.g. |
the code I added assigns Asset type to it created here: engine/src/resources/parser/glb-container-resource.js Lines 58 to 65 in d5bef0e
But internally this is stored as an id on the component, and render.asset returns asset.id |
I meant, is the asset's resource a |
Fair point. Making the Render class public. |
Are developers expected to create |
I'm hiding the constructor as well .. as there's not a big use case for its public use. |
Do we need to make Looks like instances of Even though the |
I'd probably agree with that assessment. Making |