I am fairly new to ios development, and i have a rather simple question (i guess):
I exported an FBX model from blender with attached child elements (some empty axis). I need those transforms for a certain purpose in my app. However, they won't show up when im placing my model entity in the AR Scene and try to access it's child elements. However, they are showing up in the preview view in xcode when i click on the model file.
Can someone please explain why this is and how I can access them? Would be lovely. Thanks for your help in advance!
crap. this stupid site removed everything i had typed before i was finished.
anyway. i never used realitykit. but it seems you can access your hierarchy like this
modelEntity.model.mesh.contents.isntances, where instances is a collection (meshInstanceCollection) and you can access the members by string subscript which is the name of the nodes as a path name. for example
modelEntity.model.mesh.contents.isntances["Vase_FP/mod(i can't see this in your screengrab)/FP2"]
or you can iterate through the meshInstanceCollection with its methods mentioned in the documentation. there is also modelEntity.model.mesh.contents.models, but it came up with no visible descriptions on my console so i don't know what it does.
anyway, i hope this gets you closer.
edit: yes you had to go in the nested components, which is .model