docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property rayOriginTransform

    rayOriginTransform

    The starting position and direction of any ray casts.

    Declaration
    public Transform rayOriginTransform { get; set; }
    Property Value
    Type Description
    Transform
    Remarks

    Automatically instantiated and set in Awake() if null and initialized with the pose of the attachTransform. Setting this will not automatically destroy the previous object.

    In This Article
    Back to top
    Copyright © 2023 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)