Skip to content

Commit

Permalink
ISSUE #9 Refactor for new unity-util API
Browse files Browse the repository at this point in the history
  • Loading branch information
sebjf committed Jul 23, 2021
1 parent 30957ef commit 5b42dc0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ export default Vue.extend({
declare var UnityUtil: any;
declare var viewer: any;
declare var createPixelStreamingInstance: any;
var PREFIX = 'https://www.3drepo.io';
Expand Down Expand Up @@ -266,7 +267,7 @@ function init() {
if (viewer == 'unity') {
UnityUtil.loadUnity('unity', PREFIX + '/unity/Build/unity.json', 2130706432 / 10);
} else if (viewer == 'unreal') {
UnityUtil.loadUnreal('unity', (window as any).config.unrealConfig);
UnityUtil.loadUnreal('unity', createPixelStreamingInstance, (window as any).config.unrealConfig);
}
// UnityUtil.overrideMeshColor(account, model, meshIds, color)
Expand Down

0 comments on commit 5b42dc0

Please sign in to comment.