This repository has been archived on 2025-04-28. You can view files and clone it, but cannot push or open issues or pull requests.
ARPlusSystem/ARPlusSystem-250418/Library/PackageCache/com.unity.xr.arfoundation@4.../Runtime/AR/ARTrackedObject.cs

34 lines
1.2 KiB
C#
Raw Normal View History

using System;
using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation
{
/// <summary>
/// Represents a tracked object in the physical environment.
/// </summary>
[DefaultExecutionOrder(ARUpdateOrder.k_TrackedObject)]
[DisallowMultipleComponent]
[HelpURL(HelpUrls.ApiWithNamespace + nameof(ARTrackedObject) + ".html")]
public class ARTrackedObject : ARTrackable<XRTrackedObject, ARTrackedObject>
{
/// <summary>
/// Get a native pointer associated with this tracked object.
/// </summary>
/// <remarks>
/// 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
/// <see cref="ARSession"/> update.
/// </remarks>
public IntPtr nativePtr
{
get { return sessionRelativeData.nativePtr; }
}
/// <summary>
/// The reference object which was used to detect this object in the environment.
/// </summary>
public XRReferenceObject referenceObject { get; internal set; }
}
}