I am writing a script that populates an entity’s renderer and materials at runtime from a JSON script. (Different variations of entities)
However, rather than having to specify separate mesh names and material names (which are often quite arbatory - Mesh.001 for example) Id like to just put the name of the GLB folder, then my script can access the glb folder and extract the relevant resources.
Any ideas of the best way to do this? Hopefully there is an easy method as finding materails etc manually within a folder sounds like it could become tricky especially if some entities have multiple materials etc.
Thanks
EDIT: In order to be a bit more specific to get me going How do I search for assets (of a certain type) within a specific folder inside my assets?