Search Unity

Track down which objects 'were not cleaned up when closing the scene'

Discussion in 'Editor & General Support' started by hedgeh0g, Jan 20, 2019.

  1. hedgeh0g

    hedgeh0g

    Joined:
    Jul 18, 2014
    Posts:
    102
    Hello folks,

    I've got the error Some objects were not cleaned up when closing the scene. (Did you spawn new GameObjects from OnDestroy?) , so I searched the entire solution for every OnDestroy() methods and in none of them I am spawning objects. Is there a way to find out which objects are not cleaned?

    Thanks in advance.