Skip to content

Latest commit

 

History

History
16 lines (12 loc) · 1.06 KB

README.md

File metadata and controls

16 lines (12 loc) · 1.06 KB

AdvancedWebGLBrowserInteraction

This example project demonstrates advanced use of jslib in unity when interacting with browser through emscripten layer

You can learn basics of Unity <--> browser interaction here https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html

This repository serves as an example how to set up more advanced communication

  • Passing callback from c# to javascript so that we can call c# method directly instead of using SendMessage
  • Using methods with more than one parameter or methods with struct parameter
  • Extracting texture data from WebGL context and displaying them in HTML image element

Helpful links