// /*===============================================================================
// Copyright (C) 2020 PhantomsXR Ltd. All Rights Reserved.
//
// This file is part of the AR-MOD SDK.
//
// The AR-MOD SDK cannot be copied, distributed, or made available to
// third-parties for commercial purposes without written permission of PhantomsXR Ltd.
//
// Contact info@phantomsxr.com for licensing requests.
// ===============================================================================*/
using UnityEngine;
namespace Phantom.XRMOD.ActionNotification.Runtime
{
public enum MarkerTrackingState : int
{
///
/// Not tracking.
///
None,
///
/// Some tracking information is available, but it is limited or of poor quality.
///
Limited,
///
/// Tracking is working normally.
///
Tracking,
///
/// added since the last event.
///
Added,
}
public class OnEventMarkerEventArgs : BaseNotificationData
{
///
/// 标记名称
///
public string MarkerName;
///
/// 追踪标记的状态
///
public MarkerTrackingState MarkerState;
///
/// 追踪标记根节点
///
public Transform MarkerTrackable;
public override void Dispose()
{
base.Dispose();
if (MarkerTrackable)
Object.DestroyImmediate(MarkerTrackable, true);
MarkerName = null;
}
}
}