I have a 2D entity that is reparented to null before to unload a scene where it is used so that I can reuse the same instance later.
But as soon as I try to reparented it again into another entity I got this internal exception:

It seems that the this.screen should have been nulled when reparenting to null.
Note: I'm reparenting to null for optimization reasons, to avoid useless iterations on the children.
I'll try to create a repro, even if it requires a few steps to get this results.
Let me know in the meantime If you already know if I'm doing something wrong or if you have a better approach.
I have a 2D entity that is reparented to null before to unload a scene where it is used so that I can reuse the same instance later.
But as soon as I try to reparented it again into another entity I got this internal exception:
It seems that the
this.screenshould have been nulled when reparenting to null.Note: I'm reparenting to null for optimization reasons, to avoid useless iterations on the children.
I'll try to create a repro, even if it requires a few steps to get this results.
Let me know in the meantime If you already know if I'm doing something wrong or if you have a better approach.