Files
adriadri6972 d3d9c5f833 upload project
2025-07-31 15:21:08 +02:00

39 lines
1.2 KiB
C#

using System;
using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation
{
/// <summary>
/// Represents a tracked image in the physical environment.
/// </summary>
/// <remarks>
/// Related information: <a href="xref:arfoundation-image-tracking">AR Tracked Image Manager component</a>
/// </remarks>
[DisallowMultipleComponent]
[DefaultExecutionOrder(ARUpdateOrder.k_TrackedImage)]
[HelpURL(typeof(ARTrackedImage))]
public class ARTrackedImage : ARTrackable<XRTrackedImage, ARTrackedImage>
{
/// <summary>
/// The 2D extents of the image. This is half the <see cref="size"/>.
/// </summary>
public Vector2 extents
{
get { return sessionRelativeData.size * 0.5f; }
}
/// <summary>
/// The 2D size of the image. This is the dimensions of the image.
/// </summary>
public Vector2 size
{
get { return sessionRelativeData.size; }
}
/// <summary>
/// The reference image which was used to detect this image in the environment.
/// </summary>
public XRReferenceImage referenceImage { get; internal set; }
}
}