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