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
QuaternionEulerAffordanceReceiver
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 Euler Affordance Receiver", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.3/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 |