SW 중심대학 OSS GIT 서버 박건태, 이승준, 고기완, 이준호 새로운 배포
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.4 KiB

4 years ago
  1. using System;
  2. using UnityEngine.XR.ARSubsystems;
  3. namespace UnityEngine.XR.ARFoundation
  4. {
  5. /// <summary>
  6. /// Represents an Anchor tracked by an XR device.
  7. /// </summary>
  8. /// <remarks>
  9. /// A anchor is a pose in the physical environment that is tracked by an XR device.
  10. /// As the device refines its understanding of the environment, anchors will be
  11. /// updated, helping you to keep virtual content connected to a real-world position and orientation.
  12. /// </remarks>
  13. [DefaultExecutionOrder(ARUpdateOrder.k_Anchor)]
  14. [DisallowMultipleComponent]
  15. [HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.arfoundation@3.0/api/UnityEngine.XR.ARFoundation.ARAnchor.html")]
  16. public sealed class ARAnchor : ARTrackable<XRAnchor, ARAnchor>
  17. {
  18. /// <summary>
  19. /// Get the native pointer associated with this <see cref="ARAnchor"/>.
  20. /// </summary>
  21. /// <remarks>
  22. /// The data pointed to by this pointer is implementation defined. While its
  23. /// lifetime is also implementation defined, it should be valid until at least
  24. /// the next <see cref="ARSession"/> update.
  25. /// </remarks>
  26. public IntPtr nativePtr { get { return sessionRelativeData.nativePtr; } }
  27. /// <summary>
  28. /// Get the session identifier from which this anchor originated.
  29. /// </summary>
  30. public Guid sessionId { get { return sessionRelativeData.sessionId; } }
  31. }
  32. }