Cannot read property ' active' of null

@yaustar here is a project where I had a similar problem, but not when changing scenes, in case this helps https://playcanvas.com/editor/scene/1195840. There is a script on root called “dialog” that creates the buttons. Click the buttons a couple of times to see the error.

Are you adding/cloning/instantiating UI elements entities at runtime?

yes

1 Like