Welcome to SIMMER 2.0!

We just rewrote the entire site and relaunched on Feb 15, 2025.

Need the old site? https://legacy.simmer.io

Need help? Got feedback or found a bug? support@simmer.io, discord

-Rocco, simmer.io founder

External Links in Unity WebGL

Updated: December 5, 2019

There's a simple way to add an external link in Unity WebGL, that will work with simmer or any other site that embeds your game in a frame (itch.io, kongregate, gamejolt, etc).

See the example running live here: https://simmer.io/@TheRoccoB/external-link-example

Set up a normal handler for your button, and then attach the following code as your click handler:

    public void OpenLink()
    {
    
#if UNITY_WEBGL        	    Application.ExternalEval("window.open('https://google.com','_blank')");
#endif

    }

This calls external javascript that opens your link in a new window.

Note that you will get a deprecation warning.

If you are concerned about that, you can use the article below to call javascript from your code, although it is a little more complicated than using ExternalEval.

https://docs.unity3d.com/Manual/webgl-interactingwithbrowserscripting.html