Quantcast
Channel: Questions in topic: "webgl"
Viewing all articles
Browse latest Browse all 2390

What's the best way to include a WebGL project in a Rails app (using Rails' asset pipeline, etc)

$
0
0
Hey all, I've got a relatively small Unity game, and I'm trying to export it using WebGL so it can be included in our Rails app... that said, I have no idea where to place the files or what to do with them so that they will be picked up properly. Through stabbing in the dark, I've been able to get the data/code/memUrl values to point at the files (or at least stop erroring at me), but I had to add 'gz' to the file extensions to get them picked up, so I don't know if that broke anything. As it stands right now, I'm getting 404s for all of the loading / progress bar assets, and some JS errors like this: optimizing out Math.fround calls Invoking error handler due to Uncaught SyntaxError: Unexpected identifier blob:http%3A//localhost%3A3000/2780f0a5-af74-463d-92de-ce876dca3666:1 Uncaught SyntaxError: Unexpected identifier Does anyone have a line on a tutorial that walks through how to include WebGL output in a Rails app? Any help would be greatly appreciated.

Viewing all articles
Browse latest Browse all 2390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>