From 5f236c3e572577f10fb61d272f304a58e73b5935 Mon Sep 17 00:00:00 2001 From: Jeffrey Lanters Date: Fri, 11 Jun 2021 12:45:26 +0200 Subject: [PATCH] Implemented Streaming Assets URL to Unity Instance --- source/components/Unity.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/source/components/Unity.ts b/source/components/Unity.ts index a6a0a5c..3443bf3 100644 --- a/source/components/Unity.ts +++ b/source/components/Unity.ts @@ -113,6 +113,7 @@ export default class Unity extends React.Component { this.props.unityContent.buildJsonPath, { onProgress: this.onProgress.bind(this), Module: this.props.unityContent.unityConfig.modules, + streamingAssetsUrl: this.props.unityContent.unityConfig.streamingAssetsUrl, width: "100%", height: "100%" })); @@ -142,8 +143,8 @@ export default class Unity extends React.Component { id: `__ReactUnityWebGL_${this.props.unityContent.uniqueID}__`, style: { width: this.props.width || "800px", - height: this.props.height || "600px" - } + height: this.props.height || "600px", + }, }); } }