Load external API

I need to implement an API. According to the documentation I should load it in the index.htm before anything else.

What’s the best way to do this in Playcanvas?

You can load external scripts via project settings:

1 Like

I paste the URL in the input box but it doesn’t work, check video

You are pasting into a number field, which specifies amount of external scripts. Input number 1 there. The link will go into a new field, that will appear after.

2 Likes