Quantcast
Channel: Questions in topic: "javascipt"
Viewing all articles
Browse latest Browse all 1875

Send data from Unity WebGL to Angular

$
0
0
Hi, I've been working on an issue for a couple of days ago, I have a 3d viewer (built with Unity WebGL), embedded in an Angular app, And I would like to add a two way data binding between the Angular app and the Unity App, to send a message when 3d viewer is loaded, when the size of an object has been edited... etc I've tried several ways but none of them is working... For my example I wan't to send a message from the Unity app to Angular app when Unity Viewer is loaded, for this I created a jslib with call to this external function in Unity script, but I want to send this data to the Angular app in an other project. To embed the unity viewer in the angular app i used a component named ng-unit.. I tried a solution found here : https://stackoverflow.com/questions/35296704/angular2-how-to-call-component-function-from-outside-the-app But I don't find how to call my method from Unity Here is my Angular code and privateFunc is the function to call ![alt text][1] [1]: /storage/temp/144957-screenshot-6.png

Viewing all articles
Browse latest Browse all 1875

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>