Error that occurs when the game is reset

When the game resets in debug mode, the following error occurs:

However, there are no apparent abnormalities in the display of objects on the screen.

Under what circumstances does this error occur?

I want to prevent the error from occurring, but I cannot determine the cause.

Invalid Layer Index (-1). Cannot revive object.

Based on the display, it seems the error indicates that a layer is incorrect while attempting to revive some object…

I haven’t seen this error before.

Could there be objects that are not children of Parallax2D or UI layers?

After changing the placement of each object one by one, I was able to identify the object causing the error. However, this object is placed below the UI layer, and despite being no different from other objects, the error seems to occur only when this object is placed.

Understood!
Are you generating objects via the UI?
Due to the impact of deleting the object root, when generating objects on the UI layer, you must use a mechanism similar to camera following, involving ObjectMounTarget and MountID.
(Note: Parallax2D is not available on the UI layer.)

Thank you for your response.
It seems the object placed in the UI was indeed the cause.

Since the information you provided is still beyond my current understanding, I would like to explore creating the object using a different approach.
Thank you very much.