import UnityEngine as unity def u_print(info): unity.Debug.Log(info) obj_list = unity.Object.FindObjectsOfType(unity.GameObject) for each_obj in obj_list: print(each_obj.name) u_print(each_obj.name) print('python here') u_print('python here')