Search Unity

new Array () crashes Windows Phone 8

Discussion in 'Windows' started by GarryJay, Aug 5, 2013.

  1. GarryJay

    GarryJay

    Joined:
    Nov 23, 2009
    Posts:
    42
    I am using Unity 4.2.0f4, trying to build for windows phone 8. Nokia Lumia 620
    The second I have the following command in place, it crashes the app.
    Works great on iOS and android and I really love this array. What can I do?

    js code
    Code (csharp):
    1.  
    2. #pragma strict
    3.  
    4. var moves = new Array ();
    5.  
    6. function Start () {
    7.  
    8. }
    9.  
    10. function Update () {
    11.  
    12. }
    Just apply the script to the camera, it will force close it the second it opens.
     
  2. Ostwind

    Ostwind

    Joined:
    Mar 22, 2011
    Posts:
    2,804
    Probably not supported by wp .net.

    You could use builtin arrays or generics as they are better for mobile anyways.
     
  3. GarryJay

    GarryJay

    Joined:
    Nov 23, 2009
    Posts:
    42
    But Push and Shift are so nice :)
    Thanks for the reply, will convert to builtin array.