Created
February 20, 2022 03:46
-
-
Save aallbrig/2c243ce8b3d39bff2a0674744585d2e2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var canvas = document.querySelector("#unity-canvas"); | |
var config = { | |
dataUrl: "Build/{{{ DATA_FILENAME }}}", | |
frameworkUrl: "Build/{{{ FRAMEWORK_FILENAME }}}", | |
codeUrl: "Build/{{{ CODE_FILENAME }}}", | |
#if MEMORY_FILENAME | |
memoryUrl: "Build/{{{ MEMORY_FILENAME }}}", | |
#endif | |
#if SYMBOLS_FILENAME | |
symbolsUrl: "Build/{{{ SYMBOLS_FILENAME }}}", | |
#endif | |
streamingAssetsUrl: "StreamingAssets", | |
companyName: "{{{ COMPANY_NAME }}}", | |
productName: "{{{ PRODUCT_NAME }}}", | |
productVersion: "{{{ PRODUCT_VERSION }}}", | |
devicePixelRatio: 1, | |
} | |
createUnityInstance(canvas, config); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment