TypeError: this.system.app.scripts.unbind is not a function


We started getting this error randomly on our application from today. Not sure how to isolate or debug, it is an internal function of the scripts API, thinking it fires while destroying a script instance when an entity is removed.

Can’t post a link to a project because it is private.

Any ideas?

Are you using unbind() in your code somewhere to remove an event?

That function no longer exists. You should use off() instead

Nevermind, I see that it’s in the engine. That’s our bug. I’ll fix.

1 Like

Fixed: https://github.com/playcanvas/engine/commit/f5c862d78e12048bdab114e1d281e7b871f6cbee

1 Like