Hi, after hours of debugging my android build I just discovered that the problem was here:
`Block block = Instantiate(blockPrefab, transform.position, Quaternion.identity); block.transform.SetParent(transform, false);`
If I comment out the **SetParent** line the android build runs fine, if not, the android build freezes and fails silently. I cannot see any errors on the adb log or in the console while running the build with my android device attached.
Has anyone experienced something similar or has any idea of why is this happening? I am just setting the parent to order my hierarchy so it is not necesssary for the game to run, but I am obviously missing something.
**I am using 2018.3.4f1 version.**
Thanks!
`Block block = Instantiate(blockPrefab, transform.position, Quaternion.identity); block.transform.SetParent(transform, false);`
If I comment out the **SetParent** line the android build runs fine, if not, the android build freezes and fails silently. I cannot see any errors on the adb log or in the console while running the build with my android device attached.
Has anyone experienced something similar or has any idea of why is this happening? I am just setting the parent to order my hierarchy so it is not necesssary for the game to run, but I am obviously missing something.
**I am using 2018.3.4f1 version.**
Thanks!