Skip to content

Commit 5f236c3

Browse files
Implemented Streaming Assets URL to Unity Instance
1 parent 49ba2eb commit 5f236c3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

source/components/Unity.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,6 +113,7 @@ export default class Unity extends React.Component<IUnityProps, IUnityState> {
113113
this.props.unityContent.buildJsonPath, {
114114
onProgress: this.onProgress.bind(this),
115115
Module: this.props.unityContent.unityConfig.modules,
116+
streamingAssetsUrl: this.props.unityContent.unityConfig.streamingAssetsUrl,
116117
width: "100%",
117118
height: "100%"
118119
}));
@@ -142,8 +143,8 @@ export default class Unity extends React.Component<IUnityProps, IUnityState> {
142143
id: `__ReactUnityWebGL_${this.props.unityContent.uniqueID}__`,
143144
style: {
144145
width: this.props.width || "800px",
145-
height: this.props.height || "600px"
146-
}
146+
height: this.props.height || "600px",
147+
},
147148
});
148149
}
149150
}

0 commit comments

Comments
 (0)