How to track loaded resources
On your "onMaterialsLoad" callback, you can use the following snippet to track the loaded resources, in case you need to copy/move them elsewhere: <source lang="csharp"> //Modelpath contains the laoded model path var modelPath = assetLoaderContext.Filename;
foreach (var kvp in assetLoaderContext.LoadedTextures) { //Finalpath contains the loaded texture filename string finalPath = kvp.Key.ResolvedFilename; if (!string.IsNullOrEmpty(finalPath)) { //Do stuff } }
foreach (var kvp in assetLoaderContext.LoadedExternalData) { //Finalpath contains the loaded resource filename string finalPath = kvp.Value; if (!string.IsNullOrEmpty(finalPath)) { //Do stuff } } </source>