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.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Formats.USD
    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

    ReadAllJob(Scene, SdfPath[], SceneImportOptions)

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

    Properties

    Current

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

    Methods

    Dispose()

    Declaration
    public void Dispose()
    Implements
    IDisposable.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<>>
    Implements
    IEnumerable<T>.GetEnumerator()

    MoveNext()

    Declaration
    public bool MoveNext()
    Returns
    Type Description
    Boolean
    Implements
    IEnumerator.MoveNext()

    Reset()

    Declaration
    public void Reset()
    Implements
    IEnumerator.Reset()

    Run()

    Declaration
    public void Run()

    Explicit Interface Implementations

    IEnumerable.GetEnumerator()

    Declaration
    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    IEnumerator
    Implements
    IEnumerable.GetEnumerator()

    IEnumerator.Current

    Declaration
    readonly object IEnumerator.Current { get; }
    Returns
    Type Description
    Object
    Implements
    IEnumerator.Current
    Back to top
    Copyright © 2023 Unity Technologies
    • 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 Thursday, October 19, 2023