Exemplo n.º 1
0
 /// <summary>
 /// Should create a new anchor "attached" to the trackable with id <paramref name="trackableToAffix"/>.
 /// The behavior of the anchor depends on the type of trackable to which this anchor is attached and
 /// may be implementation-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 anchor to create.</param>
 /// <param name="anchor">The new anchor. Must be valid only if this method returns <c>true</c>.</param>
 /// <returns><c>true</c> if the new anchor was added, otherwise <c>false</c>.</returns>
 public virtual bool TryAttachAnchor(
     TrackableId trackableToAffix,
     Pose pose,
     out XRAnchor anchor)
 {
     anchor = default(XRAnchor);
     return(false);
 }
Exemplo n.º 2
0
 /// <summary>
 /// Should create a new anchor with the provide <paramref name="pose"/>.
 /// </summary>
 /// <param name="pose">The pose, in session space, of the new anchor.</param>
 /// <param name="anchor">The new anchor. Must be valid only if this method returns <c>true</c>.</param>
 /// <returns>Should return <c>true</c> if the new anchor was added, otherwise <c>false</c>.</returns>
 public virtual bool TryAddAnchor(Pose pose, out XRAnchor anchor)
 {
     anchor = default(XRAnchor);
     return(false);
 }
Exemplo n.º 3
0
 /// <summary>
 /// Invoked to get the changes to anchors (added, updated, and removed) since the last call to
 /// <see cref="GetChanges(XRAnchor,Allocator)"/>.
 /// </summary>
 /// <param name="defaultAnchor">The default anchor. 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"/>.</returns>
 public abstract TrackableChanges <XRAnchor> GetChanges(XRAnchor defaultAnchor, Allocator allocator);