How do I play a Unity game in Chrome extension?

0
I am trying to make a simple unity game work in a google chrome extension. The build in web gl I have put it in an extension.

I have changed the html of the game so that the javascript runs in a , in the tutorial on creating extensions I saw it said that if you don’t do it that way it doesn’t work.

I don’t know about javascript, I know about Unity.

Do I need to add something to the manifest.json?

Do I have to change the javascript?

I have not found any information on the internet about it.

I just get this message when I try to open it in a new tab or set in iframe.
Pd: yes in my build settings I have compression none

Bottom line is: Your Content Security Policy does not allow WebAssembly to load and execute.

You indeed need to add something to the manifest.json file - wasm-unsafe-eval:

2 Likes

thank you very much it worked perfectly

1 Like