docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Interface IAffordanceStateReceiver<T>

    Typed interface for affordance state receivers used to expose the typed functions and properties necessary for an affordance state receiver to work.

    Inherited Members
    IAffordanceStateReceiver.currentAffordanceStateData
    IAffordanceStateReceiver.OnAffordanceStateUpdated(AffordanceStateData, AffordanceStateData)
    Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Receiver
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    public interface IAffordanceStateReceiver<T> : IAffordanceStateReceiver where T : struct
    Type Parameters
    Name Description
    T

    The type of the value struct.

    Properties

    affordanceTheme

    Affordance theme, used to map affordance state to a typed affordance value.

    Declaration
    BaseAffordanceTheme<T> affordanceTheme { get; }
    Property Value
    Type Description
    BaseAffordanceTheme<T>

    currentAffordanceValue

    Bindable variable for current typed affordance value. Updated as scheduled tween jobs complete.

    Declaration
    IReadOnlyBindableVariable<T> currentAffordanceValue { get; }
    Property Value
    Type Description
    IReadOnlyBindableVariable<T>
    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)