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. Dismiss Notice

export to android/exe, transform.parent behavior doesn't work... is fine in Unity

Discussion in 'Scripting' started by isurus, Feb 16, 2015.

  1. isurus

    isurus

    Joined:
    Jan 3, 2015
    Posts:
    2
    programming in C#. Unity 4.6, and 4.5. Using monoDevelop.

    making a tile game, and when the user clicks a tile that's inline with an empty tile, then the clicked one and any between the empty tile should move. this behavior works as expected in Unity.

    when i export to Android as an APK (latest Android SDK) or to EXE, the transform.parent behavior doesn't work at all.
     
  2. Mabenan

    Mabenan

    Joined:
    Feb 7, 2014
    Posts:
    132
    You mean you have seen that it reaches transform.parent and nothing happens or what do you mean
     
  3. isurus

    isurus

    Joined:
    Jan 3, 2015
    Posts:
    2
    Well I'll try to re-explain.

    Im sure it reaches that point, but, the children don't attach and therefor don't move with the parent...

    Im exporting APK and as I don't have that much experience I don't know how best to verify that... everything else in the logic seems to work fine, like other code after that seems to fire off correctly.