Class BlendShapeAffordanceReceiver
Affordance receiver for a Skinned Mesh Renderer with blend shapes.
Inheritance
BlendShapeAffordanceReceiver
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.Rendering
Syntax
[AddComponentMenu("Affordance System/Receiver/Rendering/Blend Shape Affordance Receiver", 12)]
[HelpURL("https://docs.unity3d.com/Packages/com.unity.xr.interaction.toolkit@2.4/api/UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.Rendering.BlendShapeAffordanceReceiver.html")]
public class BlendShapeAffordanceReceiver : FloatAffordanceReceiver, IAffordanceStateReceiver<float>, IAsyncAffordanceStateReceiver, IAffordanceStateReceiver
Properties
blendShapeIndex
BlendShape index to animate.
Declaration
public int blendShapeIndex { get; set; }
Property Value
Type | Description |
---|---|
Int32 |
skinnedMeshRenderer
Skinned Mesh Renderer to apply blend shapes animations to.
Declaration
public SkinnedMeshRenderer skinnedMeshRenderer { get; set; }
Property Value
Type | Description |
---|---|
SkinnedMeshRenderer |
Methods
GetCurrentValueForCapture()
Function used to get the current value of the receiver's target property. Is overriden for material properties or other targets where the initial state exists outside the receiver.
Declaration
protected override float GetCurrentValueForCapture()
Returns
Type | Description |
---|---|
Single | Initial value. |
Overrides
UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.BaseAffordanceStateReceiver<System.Single>.GetCurrentValueForCapture()
OnAffordanceValueUpdated(Single)
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(float newValue)
Parameters
Type | Name | Description |
---|---|---|
Single | newValue |
Overrides
OnEnable()
See MonoBehaviour.
Declaration
protected override void OnEnable()
Overrides
UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver.BaseAffordanceStateReceiver<System.Single>.OnEnable()