- Home /
Syntax Error with WebGL Game
I have created a webGL game, I have embedded it into my website and it should be able to be played. But instead it gives me "Uncaught SyntaxError: Unexpected Token <"
I am using Photon to network my game if that might be part of the problem.
Answer by argentummanusbeta · Sep 18, 2018 at 03:19 PM
Unity's New webgl build adds a .gz to the end of a file to set it's file type. By removing the file type ending to make it a .unityweb, the game works and runs properly
Your answer
Follow this Question
Related Questions
Optimization Pun2 send hundreds of rpcs 0 Answers
How to connect to server with a WebGL Build using Unity's Multiplayer Service, Unity 1 Answer
New UnityWebRequest How Can I Handle the responses ?? 1 Answer
Player Won't Instantiate with Photon Unity Network [PUN] 0 Answers
Photon Network instantiate problem when Master changes 0 Answers