string trackStr = new System.Diagnostics.StackTrace().ToString(); Debug.Log ("StackTrace:" + trackStr);