docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class AudioAffordanceTheme

    Audio clip affordance theme.

    Inheritance
    object
    AudioAffordanceTheme
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.Interaction.Toolkit.AffordanceSystem.Theme.Audio
    Assembly: Unity.XR.Interaction.Toolkit.dll
    Syntax
    [Serializable]
    public class AudioAffordanceTheme
    Remarks

    It does not support state tweening so it is simplified and does not inherit from BaseAffordanceTheme<T>.

    Constructors

    AudioAffordanceTheme()

    Initializes and returns an instance of AudioAffordanceTheme.

    Declaration
    protected AudioAffordanceTheme()

    Methods

    GetAffordanceThemeDataForIndex(byte)

    Gets the affordance theme data for the affordance state.

    Declaration
    public AudioAffordanceThemeData GetAffordanceThemeDataForIndex(byte stateIndex)
    Parameters
    Type Name Description
    byte stateIndex

    The affordance state index to get the theme data for.

    Returns
    Type Description
    AudioAffordanceThemeData

    Returns the affordance theme data for the affordance state, or null if there is no theme data associated with the state.

    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)