public ProbeBatch(Context context, SerializedData dataAsset) { mContext = context; var serializedObject = new SerializedObject(context, dataAsset); var status = API.iplProbeBatchLoad(context.Get(), serializedObject.Get(), out mProbeBatch); if (status != Error.Success) { Debug.LogError(string.Format("Unable to load Probe Batch from {0}.", dataAsset.name)); mProbeBatch = IntPtr.Zero; } }