Interface IAsyncAffordanceStateReceiver
An interface that represents an affordance receiver that generates asynchronous tween jobs to be scheduled with the job system, then updates the affordance state according to the tween job output.
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver
Syntax
public interface IAsyncAffordanceStateReceiver : IAffordanceStateReceiver
Methods
HandleTween(Single)
Called to generate and schedule a tween job with a given tween target.
Declaration
JobHandle HandleTween(float tweenTarget)
Parameters
Type | Name | Description |
---|---|---|
Single | tweenTarget | Tween target parameter for the tween job. Used as a parameter in the theme's animation curve to find the value between the 0-1 animation state in the associated theme. |
Returns
Type | Description |
---|---|
JobHandle | Returns |
UpdateStateFromCompletedJob()
Read the affordance value written by the last completed affordance job and propagate that to listeners. Called by the affordance state provider to propagate the tween job's output.
Declaration
void UpdateStateFromCompletedJob()