| InterpolateTryScheduleParallelEaseJob Method |
Use this method to setup an ease job for whatever EaseType you like. You are responsible for handling the NativeArray allocations / deallocations, and completing the job. This will only schedule the job for you.
Namespace:
DustProductions.Core
Assembly:
DustProductions.Core (in DustProductions.Core.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax public static bool TryScheduleParallelEaseJob(
InterpolateEaseType easeType,
NativeArray<float> nativeStartsArray,
NativeArray<float> nativeEndsArray,
float elapsedTime,
float duration,
NativeArray<float> nativeResultsArray,
out JobHandle startedJobHandle
)
Parameters
- easeType
- Type: DustProductions.CoreInterpolateEaseType
The type of ease you are trying to do. - nativeStartsArray
- Type: NativeArraySingle
The starting values before the ease. - nativeEndsArray
- Type: NativeArraySingle
The ending values, after the ease is completed. This array MUST be the same size as the nativeStartsArray. - elapsedTime
- Type: SystemSingle
The amount of time that has passed since the ease began. - duration
- Type: SystemSingle
The total amount of time the ease should take. - nativeResultsArray
- Type: NativeArraySingle
Where the results will be stored once the interpolation is calculated. This array MUST be the same size as the nativeStartsArray. - startedJobHandle
- Type: JobHandle
The JobHandle you will use to complete the job, whenever you are ready (assuming the job is successfully scheduled).
Return Value
Type:
BooleanTrue if the job is scheduled successfully, false otherwise.
See Also