Try target.dispose();

On Apr 11, 1:15 pm, Nathan Queija <nathanq...@gmail.com> wrote:
> Hi guys!
> I have an object container, that all its children are at least 50
> models, exported from Prefab as an .as file.
> That's nice! It works prefectly!
> The problem is: I want to remove all these children and add some
> others, but when I do this the memory increase each time more and it
> seems that never remove the reference to the other models loaded.
> How can I fix this?
> I ever tried, removechild(), set instance to null, I thought that was
> the material of these objects, but I tried to not apply any material
> and this thing still continue happens.
> Please, help me! =)
> Sorry for the bad english!
> Thanks so much!

Reply via email to