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.

23 lines
1.3 KiB

4 years ago
  1. using Unity.Collections;
  2. namespace UnityEngine.XR.ARSubsystems
  3. {
  4. /// <summary>
  5. /// Base class for subsystems that detect and track things in the physical environment.
  6. /// </summary>
  7. /// <typeparam name="TTrackable">The trackable's data, often a blittable type to interop with native code.</typeparam>
  8. /// <typeparam name="TSubsystemDescriptor">The subsystem descriptor for the underlying subsystem</typeparam>
  9. public abstract class TrackingSubsystem<TTrackable, TSubsystemDescriptor> : XRSubsystem<TSubsystemDescriptor>
  10. where TTrackable : struct, ITrackable
  11. where TSubsystemDescriptor : class, ISubsystemDescriptor
  12. {
  13. /// <summary>
  14. /// Retrieves a set of changes (additions, updates, and removals) since the last
  15. /// time <see cref="GetChanges(Allocator)"/> was called. This is typically called
  16. /// once per frame to update the derived class's internal state.
  17. /// </summary>
  18. /// <param name="allocator">The <c>Allocator</c> to use when creating the <c>NativeArray</c>s in <see cref="TrackableChanges{T}"/>.</param>
  19. /// <returns>The set of changes since the last time this method was invoked.</returns>
  20. public abstract TrackableChanges<TTrackable> GetChanges(Allocator allocator);
  21. }
  22. }