How do you Destroy models?

About Monkey 2 Forums Monkey 2 Programming Help How do you Destroy models?

This topic contains 2 replies, has 2 voices, and was last updated by  Mark Sibly 1 year, 7 months ago.

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #9820

    Pakz
    Participant

    I see that there have been changes in mojo3d. How do I now destroy or clear models from memory?

    #9875

    Pakz
    Participant

    I am still not to sure on how I can best aproach my current problem. Do I need to store models in a global container(list/array) and destroy all these everytime I create a new map part? (scene)

    I was using scene clear but I think this was not the way to do it since it does not work anymore. Is something like this still available or coming back?

    #9981

    Mark Sibly
    Keymaster

    Woah, sorry for being a bit slow on this one.

    Latest version in github develop branch now has a new Scene.DestroyAllEntities() method.

    This will call Destroy on all ‘root’ entities in the scene, which will cause children to be destroyed etc.

Viewing 3 posts - 1 through 3 (of 3 total)

You must be logged in to reply to this topic.