-
-
Notifications
You must be signed in to change notification settings - Fork 170
Closed
Description
Hello,
I'm trying to setup a project using react unity. I have created a build using unity and copied the files in my public folder. Using this code in App.js:
import React, { Component } from 'react';
import './App.css';
import Unity from 'react-unity-webgl';
class App extends Component {
render() {
return (
<Unity
src='public/buildunity/build2.json'
loader='public/buildunity/UnityLoader.js' />
)
}
}
export default App;
I'm getting the error in the browser: "(in promise) ReferenceError: UnityLoader is not defined"
Any Idea what might be wrong?
Maybe I made a mistake. The react project was created with "create-react-app".
Thanks a lot!
Metadata
Metadata
Assignees
Labels
No labels