Class QuaternionAffordanceReceiver
Affordance receiver applying a Vector4 (Float4) affordance theme as Quaternion. Broadcasts new affordance value with Unity Event.
Inheritance
BaseAffordanceStateReceiver<float4>
BaseAsyncAffordanceStateReceiver<float4>
QuaternionAffordanceReceiver
Inherited Members
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Primitives
Assembly: Unity.XR.Interaction.Toolkit.dll
Syntax
[AddComponentMenu("Affordance System/Receiver/Primitives/Quaternion Affordance Receiver", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/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 | New typed affordance value. |