We’re developing a game using the Unity engine and have deployed it as a WebGL application hosted within a canister. Currently, we’re facing 2 of issues:
The default fullscreen button from the page template is non-functional.
The controller/gamepad is not being recognized or supported.
These problems don’t occur when the app is hosted on an Nginx web server—everything works perfectly there. There are no errors shown in the Chrome console, which leads me to believe the issues might be related to the canister environment.
Any advice or tips on how to resolve these issues would be greatly appreciated. Thanks in advance for any help!
I have a Unity game deployed on a canister and the fullscreen button seems to work ok. https://xtyia-wqaaa-aaaam-adcsa-cai.icp0.io/
I just put the dfx.json file below in the root folder of the Unity WebGL build and deployed. Hope this helps!