docs.unity3d.com
    Show / Hide Table of Contents

    Struct ParameterData<TParameter>

    Provides methods for retrieving parameter values at a specific time inside a mix. ExecuteContext<TParameters, TProviders> IAudioKernel<TParameters, TProviders>

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.Audio
    Syntax
    public struct ParameterData<TParameter>
        where TParameter : struct, Enum
    Type Parameters
    Name Description
    TParameter

    The enum type for the parameter

    Methods

    GetFloat(TParameter, Int32)

    Get the value of a parameter at a sample offset

    Declaration
    public float GetFloat(TParameter parameter, int sampleOffset)
    Parameters
    Type Name Description
    TParameter parameter

    A specific enum value from the parameter enumeration specified in the audio job. IAudioKernel<TParameters, TProviders>

    Int32 sampleOffset

    The time to evaluate the parameter at.

    Returns
    Type Description
    Single

    The value of a parameter.

    Back to top
    Terms of use
    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