Search Unity

  1. Unity 6 Preview is now available. To find out what's new, have a look at our Unity 6 Preview blog post.
    Dismiss Notice
  2. Unity is excited to announce that we will be collaborating with TheXPlace for a summer game jam from June 13 - June 19. Learn more.
    Dismiss Notice

Calling Unity script function from Javascript

Discussion in 'Web' started by jeisoncp, Apr 13, 2021.

  1. jeisoncp

    jeisoncp

    Joined:
    Apr 12, 2021
    Posts:
    1
    Hi,

    I'm trying to follow this tutorial (
    ) about how to hide and show game objects in a WebGL export from the webpage, but using 2020.3.3f1 LTS.

    The way of access a unityInstance is different from what is showed at 5:00. I tried to follow de documentation, but I have some doubts in how to make this.

    I tried include the "f1" function in a jslib file, but the function isn't accessible from webpage. How I can do this?
     
  2. unicoea

    unicoea

    Joined:
    Feb 18, 2013
    Posts:
    60
    very nice!