docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method CheckBounds

    CheckBounds(IUsesCheckBounds, Bounds, List<GameObject>, List<GameObject>)

    Do a bounds check against all Renderers

    Declaration
    public static bool CheckBounds(this IUsesCheckBounds user, Bounds bounds, List<GameObject> objects, List<GameObject> ignoreList = null)
    Parameters
    Type Name Description
    IUsesCheckBounds user

    The functionality user

    Bounds bounds

    The bounds against which to test for Renderers

    List<GameObject> objects

    The list to which intersected Renderers will be added

    List<GameObject> ignoreList

    (optional) A list of Renderers to ignore

    Returns
    Type Description
    bool

    True if any objects are contained within the bounds

    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)