Hi BJS community,
I’ve encountered a small issue with advancedDynamicTexture.
doPicking method assumes that the camera is always there with a non-null assertion.
That’s not the case though and I get errors if the texture is created before the camera is added.
I’m not sure why the non-null assertion was added in the first place but I think we need to replace it with a check. If you are ok with that, I can make a PR for that.
And I’d probably fix some of the other arguable non-null assertions in this module btw.