| InterpolateTryScheduleEaseJob Method |
Perform an interpolation calculation on another thread with 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 TryScheduleEaseJob(
InterpolateEaseType easeType,
float start,
float end,
float elapsedTime,
float duration,
NativeArray<float> nativeResultArray,
out JobHandle startedJobHandle
)
Parameters
- easeType
- Type: DustProductions.CoreInterpolateEaseType
The type of ease you are trying to do. - start
- Type: SystemSingle
The starting value before the ease. - end
- Type: SystemSingle
The ending valuee, after the ease is completed. - 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. - nativeResultArray
- Type: NativeArraySingle
Where the results will be stored once the interpolation is calculated. This array MUST have a size greater than 0, and should not be larger than 1. - 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