docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetMatchingConfigurationEntry

    TryGetMatchingConfigurationEntry(Labeling, out T)

    Attempts to find the matching index in m_LabelEntries for the given Labeling.

    Declaration
    public bool TryGetMatchingConfigurationEntry(Labeling labeling, out T labelEntry)
    Parameters
    Type Name Description
    Labeling labeling

    The Labeling to match

    T labelEntry

    When this method returns, contains the matching ILabelEntry, or

    default
    if no match was found.
    Returns
    Type Description
    bool

    Returns true if a match was found. False if not.

    Remarks

    The matching index is the first class name in the given Labeling which matches an entry in m_LabelEntries.

    TryGetMatchingConfigurationEntry(Labeling, out T, out int)

    Attempts to find the matching index in m_LabelEntries for the given Labeling.

    Declaration
    public bool TryGetMatchingConfigurationEntry(Labeling labeling, out T labelEntry, out int labelEntryIndex)
    Parameters
    Type Name Description
    Labeling labeling

    The Labeling to match

    T labelEntry

    When this method returns, contains the matching ILabelEntry, or

    default
    if no match was found.
    int labelEntryIndex

    When this method returns, contains the index of the matching ILabelEntry, or

    -1
    if no match was found.
    Returns
    Type Description
    bool

    Returns true if a match was found. False if not.

    Remarks

    The matching index is the first class name in the given Labeling which matches an entry in m_LabelEntries.

    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)