Struct ReadAllJob<T> | USD | 2.0.0-exp.1
docs.unity3d.com
    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.

    Namespace: Unity.Formats.USD
    Syntax
    public struct ReadAllJob<T> : IEnumerator<SampleEnumerator<T>.SampleHolder>, IDisposable, IEnumerator, IEnumerable<SampleEnumerator<T>.SampleHolder>, IEnumerable, IJobParallelFor where T : SampleBase, 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

    ReadAllJob(Scene, SdfPath[])

    Declaration
    public ReadAllJob(Scene scene, SdfPath[] paths)
    Parameters
    Type Name Description
    Scene scene
    SdfPath[] paths

    Properties

    Current

    Declaration
    public SampleEnumerator<T>.SampleHolder Current { get; }
    Property Value
    Type Description
    SampleEnumerator.SampleHolder<>

    Methods

    Dispose()

    Declaration
    public void Dispose()

    Execute(Int32)

    Declaration
    public void Execute(int index)
    Parameters
    Type Name Description
    Int32 index
    Implements
    IJobParallelFor.Execute(Int32)

    GetEnumerator()

    Declaration
    public IEnumerator<SampleEnumerator<T>.SampleHolder> GetEnumerator()
    Returns
    Type Description
    IEnumerator<SampleEnumerator.SampleHolder<>>

    MoveNext()

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean

    Reset()

    Declaration
    public void Reset()

    Run()

    Declaration
    public void Run()
    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