docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method TryGetLabelEntryFromInstanceId

    TryGetLabelEntryFromInstanceId(int, out LabelEntry)

    Attempts to find the label id for the given instance id using the LabelingConfiguration passed into the constructor.

    Declaration
    public bool TryGetLabelEntryFromInstanceId(int instanceId, out LabelEntry labelEntry)
    Parameters
    Type Name Description
    int instanceId

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

    LabelEntry 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.

    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)