Answers for "calling javascript functions from unity scripts"

1

calling javascript functions from unity scripts

mergeInto(LibraryManager.library {
    Loaded: function()
    {
        window.CheckLoad();
    },
}); 


/*
Unity C# script

public class blablabla : MonoBehaviour
{
    [DllImport("__Internal")]
    private static extern void Loaded();

    public static void IsLoaded()
    {
#if !UNITY_EDITOR && UNITY_WEBGL
        Loaded();
#endif
    }

    void Start()
    {
        IsLoaded();
    }
}*/
Posted by: Guest on October-10-2021

Code answers related to "calling javascript functions from unity scripts"

Code answers related to "Javascript"

Browse Popular Code Answers by Language