Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

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.