using System;
using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation
{
///
/// Represents a tracked object in the physical environment.
///
[DefaultExecutionOrder(ARUpdateOrder.k_TrackedObject)]
[DisallowMultipleComponent]
[HelpURL(HelpUrls.ApiWithNamespace + nameof(ARTrackedObject) + ".html")]
public class ARTrackedObject : ARTrackable
{
///
/// Get a native pointer associated with this tracked object.
///
///
/// The data pointed to by this member is implementation defined.
/// The lifetime of the pointed to object is also
/// implementation defined, but should be valid at least until the next
/// update.
///
public IntPtr nativePtr
{
get { return sessionRelativeData.nativePtr; }
}
///
/// The reference object which was used to detect this object in the environment.
///
public XRReferenceObject referenceObject { get; internal set; }
}
}