I have a scene with a gameobject on it. By design there should only be one instance of this gameobject during the lifetime of the game. However, I get another instance of this gameobject created after I run the play mode. I'm pretty sure that my code does not create this second instance (there are no references to any of the components used on this gameobject, and I don't think I duplicate anything whatsoever) so there must be some package doing it.
I'm looking for an approach to debug who creates this instance. A way to see instantiation callstack would be perfect but I'm not sure if that is possible.
Thank you for your help.