public Scene(Context context, SceneSettings sceneSettings, SerializedData dataAsset) { mContext = context; var serializedObject = new SerializedObject(context, dataAsset); var status = API.iplSceneLoad(context.Get(), ref sceneSettings, serializedObject.Get(), null, IntPtr.Zero, out mScene); if (status != Error.Success) { throw new Exception(string.Format("Unable to load scene [{0}]", status.ToString())); } }