docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Struct ReadAllJob<T>

    Uses the C# job system to read all data for the given path list and presents it as an enumerator.

    Implements
    IEnumerator<SampleEnumerator<T>.SampleHolder>
    IDisposable
    IEnumerator
    IEnumerable<SampleEnumerator<T>.SampleHolder>
    IEnumerable
    IJobParallelFor
    Inherited Members
    ValueType.Equals(object)
    ValueType.GetHashCode()
    ValueType.ToString()
    object.Equals(object, object)
    object.ReferenceEquals(object, object)
    object.GetType()
    Namespace: Unity.Formats.USD
    Assembly: solution.dll
    Syntax
    public struct ReadAllJob<T> : IEnumerator<SampleEnumerator<T>.SampleHolder>, IDisposable, IEnumerator, IEnumerable<SampleEnumerator<T>.SampleHolder>, IEnumerable, IJobParallelFor where T : SampleBase, ISanitizable, new()
    Type Parameters
    Name Description
    T
    Remarks

    Internally the reads happen in a background thread while the main thread is unblocked to begin processing the data as it arrives.

    Note because this class is templated on T, the static variables are unique to each instantiation of T; this is true regardless of whether or not the static uses type T.

    Constructors

    Name Description
    ReadAllJob(Scene, SdfPath[], SceneImportOptions)

    Properties

    Name Description
    Current

    Gets the element in the collection at the current position of the enumerator.

    Methods

    Name Description
    Dispose()

    Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.

    Execute(int)

    Implement this method to perform work against a specific iteration index.

    GetEnumerator()

    Returns an enumerator that iterates through the collection.

    MoveNext()

    Advances the enumerator to the next element of the collection.

    Reset()

    Sets the enumerator to its initial position, which is before the first element in the collection.

    Run()
    In This Article
    Back to top
    Copyright © 2023 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)