docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method IsToolActive

    IsToolActive(Transform, Type)

    Check if the active tool on the given ray origin is of the given type

    Declaration
    bool IsToolActive(Transform rayOrigin, Type type)
    Parameters
    Type Name Description
    Transform rayOrigin

    The ray origin to check

    Type type

    The tool type to compare

    Returns
    Type Description
    bool

    True if the active tool is of the given type

    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)