Skip to content

Commit

Permalink
Implemented Streaming Assets URL to Unity Instance
Browse files Browse the repository at this point in the history
  • Loading branch information
jeffreylanters committed Jun 11, 2021
1 parent 49ba2eb commit 5f236c3
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions source/components/Unity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ export default class Unity extends React.Component<IUnityProps, IUnityState> {
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%"
}));
Expand Down Expand Up @@ -142,8 +143,8 @@ export default class Unity extends React.Component<IUnityProps, IUnityState> {
id: `__ReactUnityWebGL_${this.props.unityContent.uniqueID}__`,
style: {
width: this.props.width || "800px",
height: this.props.height || "600px"
}
height: this.props.height || "600px",
},
});
}
}

0 comments on commit 5f236c3

Please sign in to comment.