docs.unity3d.com
    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
    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>
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023