Comments (6)
It's ok if I import with this syntax : import Unity from 'vue-unity-webgl'
But how import Message component ?
from vue-unity-webgl.
@alex83130
/node_modules/vue-unity-webgl/src/Unity.vue
I've done a lot about using messages and I'm still looking for them.
The only way I succeeded was when I used 'this.gameInstance.SendMessage' directly at the node_module address above. That is, when you wrote the code in the nodeModule.
I'm trying to do something in the .vue I'm writing, but the message is not yet successful.
If the @votetake sees this, please let me know how to use the messages. I've done almost everything.
from vue-unity-webgl.
Thanks @Rocher0724 ! But I would not like to write directly to the node_modules...
@votetake you have a solution to import the message object in my vue component and why the import in the readme no work for me ?
from vue-unity-webgl.
- If I use :
import { Unity, Message } from 'vue-unity-webgl'
I have no map and this error :
- If I use :
import Unity from 'vue-unity-webgl'
It's ok for the map but I haven't not access to the Message method
- If I use :
import { Message } from 'vue-unity-webgl'
import Unity from 'vue-unity-webgl/src/Unity'
It's ok for the map, but I have this error if I try to send a Message :
from vue-unity-webgl.
And in your "vue-unity-webgl/src/index.js", only the Unity object is export, and there is no export message object. Is it normal ?
from vue-unity-webgl.
I have a fix for this problem in my pull request #9
from vue-unity-webgl.
Related Issues (20)
- stale vue-unity-webgl.js HOT 1
- Error Security Policy
- Unable to use with Nuxt HOT 1
- Example Repo HOT 1
- Textinputs not working when I implemented Unity HOT 1
- How to hide footer HOT 1
- how can component support canvas.toDataUrl()
- what does 'Module' mean?
- Cannot use scss to select #unity-container HOT 1
- Remove fullscreen label HOT 5
- multiple unity instances can not be loaded successfully in SPA
- Is Vue 3 support planned? HOT 9
- Fullscreen button bug HOT 1
- unitywegl logo HOT 1
- how can i use externalProgress property HOT 1
- calling vue js function from unity HOT 3
- Is there any plan for Unity 2020 support? HOT 10
- Messages from unity to js HOT 7
- Uncaught (in promise) TypeError: Cannot read properties of undefined (reading '_c') HOT 5
- Could I use the absolute path? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-unity-webgl.