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.

Calling Unity script function from Javascript

Discussion in 'WebGL' 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!