Question by 
               studioscombo · Apr 01, 2019 at 09:59 PM · 
                c#javascriptwebglbrowserbrowser communication  
              
 
              What's the proper way to make my game listen to a browser's javascript event?
I need to make my WebGL game able to listen to a javascript event that would be called from the user's browser to unlock all levels.
I went through https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html but it didn't seem to have what I was looking for. Something similar to ExternalInterface.addCallback() from AS3.
The handler of the event just calls the UnlockAllLevels from one of my scripts, but how am I supposed to receive the javascript "unlockAllLevels" event?
               Comment
              
 
               
              Your answer
 
 
              koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                