List <OutlinerItemModel> GetAllSceneObjectsInScene() { List <OutlinerItemModel> sObjects = new List <OutlinerItemModel>(); int numObj = IGCore.GetSceneObjectNum(); for (int i = 0; i < numObj; i++) { IntPtr pName = IGCore.GetSceneObjectName(i); string objName = Marshal.PtrToStringUni(pName); //string objName = Marshal.PtrToStringAnsi(pName); OutlinerItemModel obj = new OutlinerItemModel(); obj.Icon = outlinerIcons["Mesh"]; obj.Name = objName; obj.Children = new List <OutlinerItemModel>(); obj.ObjectType = "Mesh"; sObjects.Add(obj); } return(sObjects); }