immersivecognition / unity-experiment-framework

UXF - Framework for creating human behaviour experiments in Unity
https://immersivecognition.github.io/unity-experiment-framework/
MIT License
221 stars 43 forks source link

WebGL Template for Unity 2020 #80

Closed vagechirkov closed 3 years ago

vagechirkov commented 3 years ago

Hi,

I am trying to build an experiment using the UXF WebGL template in Unity 2020.3.12f1 but it doesn't work. However, I can build the experiment using a build-in WebGL Unity template. As far as I understand from the Unity Manual, WebGL templates were changed significantly between versions 2019 and 2020. Are you planning to implement a WebGL template for the newer versions of Unity? In the 2019.4.11.f1 Unity version, WebGL template works perfectly!

Any suggestions would be helpful!

Valerii

jackbrookes commented 3 years ago

Can you say exactly what the issue is? I believe I tested this before, and did not have issues.

vagechirkov commented 3 years ago

I have tried to build and run UXF Example 2 (Unity 2020.3.12.f1).

Output in Browser: ![image](https://user-images.githubusercontent.com/42982039/123838284-22b42b80-d90c-11eb-93cc-4dcab828eae9.png) Output WebGL folder: ![image](https://user-images.githubusercontent.com/42982039/123838532-6149e600-d90c-11eb-84f4-b2eca197bdfc.png) index.html file: ```html %UNITY_WEB_NAME% | UXF WebGL Experiment

%UNITY_WEB_NAME%

%UNITY_CUSTOM_DESCRIPTION%

The experiment is loading...

Experiment developed with UXF

```
jackbrookes commented 3 years ago

I pushed an update (https://github.com/immersivecognition/unity-experiment-framework/commit/cd021b94d8bf388be4732e7db4571e9ae8990f58) that should fix this. Let me know if you still have issues.

https://github.com/immersivecognition/unity-experiment-framework/releases/tag/2.2.3

vagechirkov commented 3 years ago

I pushed an update (cd021b9) that should fix this. Let me know if you still have issues.

https://github.com/immersivecognition/unity-experiment-framework/releases/tag/2.2.3

Everything works great! Thank you!!