Class QuaternionEulerAffordanceReceiver
Affordance receiver applying a Vector3 (Float3) affordance theme that is converted to a Quaternion as an euler rotation. Broadcasts new affordance value with Unity Event.
Inheritance
BaseAffordanceStateReceiver<float3>
BaseAsyncAffordanceStateReceiver<float3>
QuaternionEulerAffordanceReceiver
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 Euler Affordance Receiver", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.5/api/UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Primitives.QuaternionEulerAffordanceReceiver.html")]
public class QuaternionEulerAffordanceReceiver : Vector3AffordanceReceiver, IAffordanceStateReceiver<float3>, IAsyncAffordanceStateReceiver, IAffordanceStateReceiver
Properties
quaternionValueUpdated
The event that is called when the current affordance value is updated, expressed as a Quaternion generated from euler angles.
Declaration
public QuaternionUnityEvent quaternionValueUpdated { get; set; }
Property Value
Type | Description |
---|---|
QuaternionUnityEvent |
See Also
Methods
OnAffordanceValueUpdated(float3)
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(float3 newValue)
Parameters
Type | Name | Description |
---|---|---|
float3 | newValue | New typed affordance value. |