airconsole - Unity and onGameReady not defined -


this based off of air console demo github.

i compiled "basic" example web (no alterations), , set locally, , ran simlulator syntax teh website.

the controllers load properly, screen not.

it has several errors when ran:

(program):1 uncaught securityerror: blocked frame origin "http://machinename" accessing frame origin "http://www.airconsole.com". protocols, domains, , ports must match. 

and also:

exception thrown: referenceerror: ongameready not defined,referenceerror: ongameready not defined      @ eval (eval @ _js_eval_evaljs (http://machinename/unity/release/build-webgl.js:1:156420), <anonymous>:1:1)      @ eval (native)      @ _js_eval_evaljs (http://machinename/unity/release/build-webgl.js:1:156420)      @ array.wrb (http://machinename/unity/release/build-webgl.js:16:784695)      @ ykk (http://machinename/unity/release/build-webgl.js:7:594173)      @ wkk (http://machinename/unity/release/build-webgl.js:7:593680)      @ array.rpf (http://machinename/unity/release/build-webgl.js:9:667389)      @ array.lwm (http://machinename/unity/release/build-webgl.js:8:87554)      @ object.zin [as dyncall_iiii] (http://machinename/unity/release/build-webgl.js:29:39143)      @ invoke_iiii (http://machinename/unity/release/build-webgl.js:1:356104)module.printerr @ screen.html:34  unityconfig.js:76 invoking error handler due  uncaught referenceerror: ongameready not defined

the ongameready method defined in webgl templates folder included in unity plugin. make sure import , keep entire webgl templates folder in project.


Comments

Popular posts from this blog

1111. appearing after print sequence - php -

java - WARN : org.springframework.web.servlet.PageNotFound - No mapping found for HTTP request with URI [/board/] in DispatcherServlet with name 'appServlet' -

Ruby on Rails, ActiveRecord, Postgres, UTF-8 and ASCII-8BIT encodings -