docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class ValidationUtility<T>

    A utility to validate data from certain types of Subsystems.

    Inheritance
    object
    ValidationUtility<T>
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public class ValidationUtility<T> where T : struct, ITrackable
    Type Parameters
    Name Description
    T

    The ITrackable managed by the subsystem.

    Methods

    ValidateAndDisposeIfThrown(TrackableChanges<T>)

    Same as ValidateAndThrow(TrackableChanges<T>) but also disposes the changes.

    Declaration
    public void ValidateAndDisposeIfThrown(TrackableChanges<T> changes)
    Parameters
    Type Name Description
    TrackableChanges<T> changes

    A set of changes to trackables (added, updated and removed).

    See Also
    XRPointCloudSubsystem
    XRPlaneSubsystem
    XRAnchorSubsystem

    ValidateAndThrow(TrackableChanges<T>)

    Performs validation checks that ensure a trackable does not exist in multiple lists simultaneously (for example, both added and removed). Also ensures that a trackable cannot be removed before being added.

    Declaration
    public void ValidateAndThrow(TrackableChanges<T> changes)
    Parameters
    Type Name Description
    TrackableChanges<T> changes

    A set of changes to trackables (added, updated and removed).

    See Also
    XRPointCloudSubsystem
    XRPlaneSubsystem
    XRAnchorSubsystem

    See Also

    XRPointCloudSubsystem
    XRPlaneSubsystem
    XRAnchorSubsystem
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)