docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetLabelEntryFromInstanceId

    TryGetLabelEntryFromInstanceId(uint, out IdLabelEntry)

    Attempts to find the label id for the given instance id.

    Declaration
    public bool TryGetLabelEntryFromInstanceId(uint instanceId, out IdLabelEntry labelEntry)
    Parameters
    Type Name Description
    uint instanceId

    The instanceId of the object for which the labelId should be found

    IdLabelEntry labelEntry

    The LabelEntry associated with the object. default if not found

    Returns
    Type Description
    bool

    True if a labelId is found for the given instanceId.

    TryGetLabelEntryFromInstanceId(uint, out IdLabelEntry, out int)

    Attempts to find the label id for the given instance id.

    Declaration
    public bool TryGetLabelEntryFromInstanceId(uint instanceId, out IdLabelEntry labelEntry, out int index)
    Parameters
    Type Name Description
    uint instanceId

    The instanceId of the object for which the labelId should be found

    IdLabelEntry labelEntry

    The LabelEntry associated with the object. default if not found

    int index

    The index of the found LabelEntry in labelEntries. -1 if not found

    Returns
    Type Description
    bool

    True if a labelId is found for the given instanceId.

    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)