public unsafe void Execute() { AddImage(database, validator, ref managedReferenceImage, grayscaleImage.GetUnsafePtr(), width, height, name.GetUnsafePtr()); if (!GetStatus(validator).IsSuccess()) { managedReferenceImage.Dispose(); } RcoApi.Release(database); }
public unsafe void Execute() { bool success = UnityARCore_ImageDatabase_addImage( database, ref managedReferenceImage, grayscaleImage.GetUnsafePtr(), width, height, name.GetUnsafePtr()); if (!success) { managedReferenceImage.Dispose(); } RcoApi.Release(database); }