docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Property this

    this[string]

    A square bracket operator to find an AudioClip by key string, similar to how you would find a value by key in a Dictionary.

    Declaration
    public AudioClip this[string key] { get; }
    Parameters
    Type Name Description
    string key

    The AudioClip we are searching for

    Property Value
    Type Description
    AudioClip

    Returns an AudioClip if one is found with that key. Could return null. Could throw a KeyNotFoundException.

    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)