docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property stopLineAtFirstRaycastHit

    stopLineAtFirstRaycastHit

    Controls whether this behavior always cuts the line short at the first ray cast hit, even when invalid.

    Declaration
    public bool stopLineAtFirstRaycastHit { get; set; }
    Property Value
    Type Description
    bool
    Remarks

    The line will always stop short at valid targets, even if this property is set to false. If you wish this line to pass through valid targets, they must be placed on a different layer. true means to do the same even when pointing at an invalid target. false means the line will continue to the configured line length.

    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)