docs.unity3d.com
    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.ToString()
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.ARSubsystems
    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).

    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
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023