docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetMatchingConfigurationEntry

    TryGetMatchingConfigurationEntry(Labeling, out LabelEntry)

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

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

    The Labeling to match

    LabelEntry labelEntry

    When this method returns, contains the matching LabelEntry, 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 LabelEntries.

    TryGetMatchingConfigurationEntry(Labeling, out LabelEntry, out int)

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

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

    The Labeling to match

    LabelEntry labelEntry

    When this method returns, contains the matching LabelEntry, or

    default
    if no match was found.
    int labelEntryIndex

    When this method returns, contains the index of the matching LabelEntry, 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 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)