Unloading and Reloading materials

Here is an example that might assist in finding the proper solution. When a material is unloaded, I reset the material asset’s data texture references back to the texture assets ID.
https://playcanvas.com/project/779957/overview/asset-helper
https://playcanvas.com/editor/code/779957?tabs=45050271

2 Likes