How to use jquery in playcanvas scripts

Hi all!
I’m new and i hope оpе you can help me with a little problem with JQuery.
I want to use jquery in the script. Currently, I am loading jquery into the resource and reporting an error of Uncaught ReferenceError. $ is not defined




I have just tried this myself with no problem:

The only issue I can think of is if you are using jquery code in global space as parsing scripts only parses the script in isolation. So if it executes jquery syntax, it will fail.

As long as the jquery code is in the script type functions/not executing in global space, it should work.

If you are still running into issues, please post a public project with the issue.

Thank you very much. I apologize for not being able to reply to you earlier due to work reasons