Class QuaternionAffordanceReceiver
Affordance receiver applying a Vector4 (Float4) affordance theme as Quaternion. Broadcasts new affordance value with Unity Event.
Inheritance
QuaternionAffordanceReceiver
Inherited Members
UnityEngine.Component.GetComponentInParent<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectsOfType<T>(System.Boolean)
UnityEngine.Object.FindObjectsByType<T>(UnityEngine.FindObjectsInactive, UnityEngine.FindObjectsSortMode)
UnityEngine.Object.FindObjectOfType<T>(System.Boolean)
UnityEngine.Object.FindFirstObjectByType<T>()
UnityEngine.Object.FindAnyObjectByType<T>()
UnityEngine.Object.FindFirstObjectByType<T>(UnityEngine.FindObjectsInactive)
UnityEngine.Object.FindAnyObjectByType<T>(UnityEngine.FindObjectsInactive)
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.4/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 |