Code after opening script file

what is the code that automatically appears in every script file

Hi @Josh_Cornish-Barlow,

That’s the default template code that you can use as boilerplate to write your own PlayCanvas scripts.

You can view it by creating a new script in the editor. Find more about the anatomy of the scripts in this manual page:

1 Like