Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Adding an external library/api pre build

Discussion in 'WebGL' started by TroyFabcomLive, Oct 13, 2020.

  1. TroyFabcomLive

    TroyFabcomLive

    Joined:
    Oct 2, 2020
    Posts:
    12
    I am using a WebGL build that has overlay features for the html. The button shown will call the javascript to make the overlay call.
    Screen Shot 2020-10-13 at 10.29.09 AM.png

    Now when I press the button I get the error.

    Screen Shot 2020-10-13 at 10.29.49 AM.png

    This is fine, because I have not included the line

    <script crossorigin src="[URL='https://unpkg.com/@daily-co/daily-js%22>']" tabindex="-1">https://unpkg.com/@daily-co/daily-js"></script>[/URL]

    within my html file that Unity exports. My question is, how can I have this bit included before I build out?
     
  2. jukka_j

    jukka_j

    Unity Technologies

    Joined:
    May 4, 2018
    Posts:
    944
    TroyFabcomLive likes this.
  3. TroyFabcomLive

    TroyFabcomLive

    Joined:
    Oct 2, 2020
    Posts:
    12
  4. TroyFabcomLive

    TroyFabcomLive

    Joined:
    Oct 2, 2020
    Posts:
    12
    jukka_j likes this.