docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SelectObjects

    SelectObjects(List<GameObject>, Transform, bool, bool)

    Select the given objects using the given rayOrigin

    Declaration
    void SelectObjects(List<GameObject> hoveredObjects, Transform rayOrigin, bool multiSelect, bool useGrouping = false)
    Parameters
    Type Name Description
    List<GameObject> hoveredObjects

    The hovered objects

    Transform rayOrigin

    The rayOrigin used for selection

    bool multiSelect

    Whether to add the hovered object to the selection, or override the current selection

    bool useGrouping

    Use group selection

    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)