docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method GetSelectionCandidate

    GetSelectionCandidate(IUsesSelectObject, GameObject, bool)

    Given a hovered object, find what object would actually be selected

    Declaration
    public static GameObject GetSelectionCandidate(this IUsesSelectObject user, GameObject hoveredObject, bool useGrouping = false)
    Parameters
    Type Name Description
    IUsesSelectObject user

    The functionality user

    GameObject hoveredObject

    The hovered object that is being tested for selection

    bool useGrouping

    Use group selection

    Returns
    Type Description
    GameObject

    Returns what object would be selected by selectObject

    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)