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, 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<> |
Methods
Dispose()
Declaration
public void Dispose()
Execute(Int32)
Declaration
public void Execute(int index)
Parameters
| Type | Name | Description |
|---|---|---|
| Int32 | index |
Implements
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()