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

How to access submeshes through FilamentAsset? #5021

Closed
ninjz opened this issue Jan 6, 2022 · 1 comment
Closed

How to access submeshes through FilamentAsset? #5021

ninjz opened this issue Jan 6, 2022 · 1 comment

Comments

@ninjz
Copy link

ninjz commented Jan 6, 2022

I am using the SceneView/sceneform-android library and trying to access the submeshes of a loaded .glb model file within a FilamentAsset that is returned. However, it looks like all the functions like getEntities() returns int[] types which are not objects that provide access to anything useful.

How can I access the node hierarchy or sub meshes within the .glb file from a FilamentAsset?

Related:
SceneView/sceneform-android#118

@romainguy
Copy link
Collaborator

Please use the discussions tab. Entities are what you are looking for. You use those entities to access components via the managers (RenderableManager for instance to set/get materials, TransformManager for transforms etc.).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants