Class QuaternionAffordanceReceiver
Affordance receiver applying a Vector4 (Float4) affordance theme as Quaternion. Broadcasts new affordance value with Unity Event.
Inheritance
Inherited Members
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Primitives
Syntax
[AddComponentMenu("Affordance System/Receiver/Primitives/Quaternion Affordance Receiver", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.3/api/UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Primitives.QuaternionAffordanceReceiver.html")]
public class QuaternionAffordanceReceiver : Vector4AffordanceReceiver, IAffordanceStateReceiver<float4>, IAsyncAffordanceStateReceiver, IAffordanceStateReceiver
Properties
quaternionValueUpdated
The event that is called when the current affordance value is updated, expressed as a Quaternion.
Declaration
public QuaternionUnityEvent quaternionValueUpdated { get; set; }
Property Value
Type | Description |
---|---|
QuaternionUnityEvent |
See Also
Methods
OnAffordanceValueUpdated(float4)
Method that is called when the typed affordance value is updated. Implement this method in a derived class to apply the current affordance value, such as setting a material property or raising an event.
Declaration
protected override void OnAffordanceValueUpdated(float4 newValue)
Parameters
Type | Name | Description |
---|---|---|
float4 | newValue |