View is not associating correct canvas

this is an extension of this:

Basically I have found that when you remove a view it might not remove the correct one.

I have proven this behavior by directly referring to a canvas and using the unregister method than checking the engines’ view one by one to see where their target points and the ones that I just removed will still be there while others that were not supposed to be removed are gone.

Is this because I registered them with a camera, would I need to unregister them with a camera as well?

Also should a scene.dispose() unregister the view?

Maybe this is why?

should be if(view.target === canvas) id assume

2 Likes