Skip to content

this.screen.screen is undefined #1151

Description

@mcmorry

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:

screenshot 2018-03-27 18 29 06

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.

Metadata

Metadata

Assignees

Labels

area: uiUI related issue

Type

Fields

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions