Tuesday, December 26, 2017

Unity: checking errors

If you cannot build to a mobile device for some reason, it may be due to a compiler error. To check, open the console window, click the bottom on the top right corner and 'open editor log'. This will contain detailed information as to why the project could not build.

Friday, December 22, 2017

Unity: Access child of a gameobject

GameObject ChildGameObject = ParentGameObject.transform.GetChild(i).gameObject;

where i is the index of the child transform.