docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method SetRayOriginEnabled

    SetRayOriginEnabled(IUsesControlInputIntersection, Transform, bool)

    Enable/disable a given ray-origin's ability to intersect/interact with non UI objects

    Declaration
    public static void SetRayOriginEnabled(this IUsesControlInputIntersection user, Transform rayOrigin, bool enabled)
    Parameters
    Type Name Description
    IUsesControlInputIntersection user

    The functionality user

    Transform rayOrigin

    RayOrigin to enable/disable

    bool enabled

    Enabled/disabled state of RayOrigin

    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)