Search Unity

Typescirpt + Angular2 Unity3D project

Discussion in 'Web' started by sumdog_steve, Apr 14, 2016.

  1. sumdog_steve

    sumdog_steve

    Joined:
    Apr 6, 2016
    Posts:
    3
    Hi,

    I am experimenting building a webgl Unity App to be embedded in an Angular 2 App that is written using typescript. I having major problems with this though.

    I keep getting hit with issues related to Garbage collection, memory issues an other things that are similar to these posts:
    * http://forum.unity3d.com/threads/webgl-out-of-memory-unity-5-3-4f1.396568/
    * http://forum.unity3d.com/threads/error-when-building-webgl-from-5-3-4.392123/

    My question is: Is anyone else using Angular 2 for their webgl App? I'm also wondering if it is even possible to do that at the minute as Angular 2 uses the zone.js library which used threading.

    Any help would be really appreciated!

    Thanks,

    Steve
     
  2. bananaslug

    bananaslug

    Joined:
    Apr 22, 2015
    Posts:
    1
    Did you have any luck?
     
  3. FunkyFancy

    FunkyFancy

    Joined:
    Nov 23, 2016
    Posts:
    9
    hey there.
    I'm trying to achieve the same.... did you succeed?
    Is there any chance to embed unity into angular 2?

    I'm kinda thinking injecting the unity library and pass data from a function to it...
    Is there any chance? Or do I have to switch to librarys like three.js or babylon.js?

    Can you maybe provide a plunkr?