Hello,
first at all, sorry my bad english. I’m facing a anoying problem a few days, I have a application that use AWAY3D, and I import some pieces (.obj) in the stage, and the user can put some materials (textures) on it after that, in real time, but the problem is, with the time I get the “Resource limit for this resource type exceeded” message when the user try to load the new texture. So I research a little and discover that it happens because I dont dispose the material before replacing with, but some strange thing happen when I try do that, the material of others objects dissapear and not just the one I’m dispose.
A little piece of the code:
_parteAtual = holderBase.getChildAt(i) as Mesh
_parteAtual.material.dispose();
_parteAtual.material=parteMaterial
parteMaterial is the new texture. But when I do that dispose(), it clean a lot of objects, and not just the _parteAtual one.. Anyone knows why?
Thanks for helping!