// %BANNER_BEGIN%
// ---------------------------------------------------------------------
// %COPYRIGHT_BEGIN%
// Copyright (c) (2018-2023) Magic Leap, Inc. All Rights Reserved.
// Use of this file is governed by the Software License Agreement, located here: https://www.magicleap.com/software-license-agreement-ml2
// Terms and conditions applicable to third-party materials accompanying this distribution may also be found in the top-level NOTICE file appearing herein.
// %COPYRIGHT_END%
// ---------------------------------------------------------------------
// %BANNER_END%
using System;
namespace UnityEngine.XR.MagicLeap
{
public partial class MLSpace
{
///
/// Indicates the type of the Space.
///
public enum Type
{
///
/// On device space.
///
OnDevice,
///
/// AR Cloud based space.
///
ARCloud
}
///
/// The current localization status.
///
public enum Status
{
///
/// The device is currently not localized.
///
NotLocalized,
///
/// The device has localized successfully.
///
Localized,
///
/// Localization attempt is currently in progress.
///
LocalizationPending,
///
/// The device will attempt to localize after sleep duration is complete.
///
SleepingBeforeRetry,
}
///
/// The confidence of the current localization.
///
public enum LocalizationConfidence
{
///
/// Localization confidence is very poor and should be reattempted.
///
Poor,
///
/// The confidence is low, current environmental conditions may adversely affect localization.
///
Fair,
///
/// The confidence is high, persistent content should be stable.
///
Good,
///
/// This is a very high-confidence localization, persistent content will be very stable.
///
Excellent
}
///
/// A set of possible reasons that a localization attempt may be unsuccessful.
///
[Flags]
public enum LocalizationErrorFlag
{
///
/// No error, localization was successful.
///
None = 0,
///
/// Localization failed for an unknown reason.
///
Unknown = 1 << 0,
///
/// Localization failed becuase the user is outside of the mapped area.
///
OutOfMappedArea = 1 << 1,
///
/// There are not enough features in the environment to successfully localize.
///
LowFeatureCount = 1 << 2,
///
/// Localization failed due to excessive motion.
///
ExcessiveMotion = 1 << 3,
///
/// Localization failed because the lighting levels are too low in the environment.
///
LowLight = 1 << 4,
///
/// A headpose failure caused localization to be unsuccessful.
///
HeadposeFailure = 1 << 5,
///
/// There was an internal algorithm failure that prevented localization.
///
AlgorithmFailure = 1 << 6
}
}
}