How can I give Unity WebGL apps the equivalent of command line parameters? TL;DR For people who want to get directly to the answer and know the prerequisites, make a JavaScript plugin that sends back a member variable from window.location and parse it at the start of your program. For everyone else who wants more …
Author Archives: reavenk
Upload Text Files To A Unity WebGL App
What happens if you have a Unity WebGL application, and you want the user to be able to load files to the browser app from a file-upload dialog?This post focuses on text files. For information on how to upload binary files to a Unity WebGL app, see this post. The last post covered how to …
Download Text Files From a Unity WebGL App
How do I have a Unity WebGL app generate content, and then let the user download that data? This post focuses on text file data. For downloading binary files, see this post. If you have a Unity app that’s a tool or something that’s creative, you can have the WebGL app generate a file that …
Continue reading “Download Text Files From a Unity WebGL App”
WebKeys
The alpha of a new personal project called WebKeys can be accessed here. The application has a keyboard interface with labeled keys. It also has a wiring system to “reprogram” the synth with a graph-node interface.
Multiple Unity Inspectors
Sometimes there are occasions where I need multiple inspectors open to compare items or analyze an item while keeping my place viewing another item that I’m editing. On the top right of each docked pane of Unity, there is a hamburger icon. In the Add Tab section, there is the option for another Inspector. This …
New Article Directory, Notes on Audio and Music
While it’s still under construction, there’s enough posts on the topic to start its own directory page here. It’s a combination of audio coding and audio theory – as well as a light touch of music theory. The ultimate goal is to explain the foundations for software synthesizers.
Non-Primitive Waves
The primitives waves are just building blocks. Most audio are not primitive waves, but more complex forms of sound. This article is a continuation of this article on tone generation. That article covered simple primitive wave types for tone generations. In this article, we’re going to cover non-primitive waves. Arbitrary Tones So the previous article …
Primitives for Generating Tones
Just a warning, make sure your volume isn’t too loud when playing the samples on this page. This article is going to cover primitive wave types and generating simple versions of their functions. These primitives waves are just building blocks. Most audio is not primitive waves but more complex forms of sound – but we’ll …
Calculating the Frequency of a Note
In western music theory, there are 12 distinct keys in an octave: A, A#, B, C, C#, D, D#, E, F, F#, G and G#. A note is a combination of a key and an octave – where a note one octave higher than another of the same key will have twice the frequency.Given an …
Accessing & Manipulating the Unity WebGL Canvas
Unity WebGL can display 3D content because it uses a web standard called WebGL.I’m sure we all figured that out by the platform build name. It is basically a web version of an open-spec and mature 3D graphics API called OpenGL. WebGL works by drawing 3D content on to an HTML5 canvas element in the …
Continue reading “Accessing & Manipulating the Unity WebGL Canvas”