/// <summary>
 /// Should create a new reference "attached" to the trackable with id <paramref name="trackableToAffix"/>.
 /// The behavior of the reference point depends on the type of trackable to which this reference point is attached and
 /// may be implemenation-defined.
 /// </summary>
 /// <param name="trackableToAffix">The id of the trackable to which to attach.</param>
 /// <param name="pose">The pose, in session space, of the reference point to create.</param>
 /// <param name="referencePoint">The new reference point. Must be valid only if this method returns <c>true</c>.</param>
 /// <returns><c>true</c> if the new reference point was added, otherwise <c>false</c>.</returns>
 public virtual bool TryAttachReferencePoint(
     TrackableId trackableToAffix,
     Pose pose,
     out XRReferencePoint referencePoint)
 {
     referencePoint = default(XRReferencePoint);
     return(false);
 }
 /// <summary>
 /// Invoked to get the changes to reference points (added, updated, and removed) since the last call to
 /// <see cref="GetChanges(XRReferencePoint, Allocator)"/>.
 /// </summary>
 /// <param name="defaultReferencePoint">The default reference point. This should be used to initialize the returned
 /// <c>NativeArray</c>s for backwards compatibility.
 /// See <see cref="TrackableChanges{T}.TrackableChanges(void*, int, void*, int, void*, int, T, int, Unity.Collections.Allocator)"/>.
 /// </param>
 /// <param name="allocator">An allocator to use for the <c>NativeArray</c>s in <see cref="TrackableChanges{T}"/>.</param>
 /// <returns>Changes since the last call to <see cref="GetChanges(XRReferencePoint, Allocator)"/>.</returns>
 public abstract TrackableChanges <XRReferencePoint> GetChanges(XRReferencePoint defaultReferencePoint, Allocator allocator);
 /// <summary>
 /// Should create a new reference point with the provide <paramref name="pose"/>.
 /// </summary>
 /// <param name="pose">The pose, in session space, of the new reference point.</param>
 /// <param name="referencePoint">The new reference point. Must be valid only if this method returns <c>true</c>.</param>
 /// <returns>Should return <c>true</c> if the new reference point was added, otherwise <c>false</c>.</returns>
 public virtual bool TryAddReferencePoint(Pose pose, out XRReferencePoint referencePoint)
 {
     referencePoint = default(XRReferencePoint);
     return(false);
 }
Пример #4
0
 /// <summary>
 /// Invoked to get the changes to reference points (added, updated, & removed) since the last call to <see cref="GetChanges(Allocator)"/>.
 /// </summary>
 /// <param name="defaultReferencePoint">The default reference point. This should be used to initialize the returned
 /// <c>NativeArray</c>s for backwards compatibility.
 /// See <see cref="TrackableChanges{T}.TrackableChanges(void*, int, void*, int, void*, int, T, int, Allocator)"/>.
 /// </param>
 /// <param name="allocator">An allocator to use for the <c>NativeArray</c>s in <see cref="TrackableChanges{T}"/>.</param>
 /// <returns>Changes since the last call to <see cref="GetChanges"/>.</returns>
 public virtual TrackableChanges <XRReferencePoint> GetChanges(
     XRReferencePoint defaultReferencePoint,
     Allocator allocator)
 {
     return(default(TrackableChanges <XRReferencePoint>));
 }