docs.unity.cn
Search Results for

    Show / Hide Table of Contents

    Property snapCollider

    snapCollider

    The trigger collider to associate with the interactable when it is hit/collided. Rays will snap from this to the snapToCollider.

    Declaration
    public Collider snapCollider { get; set; }
    Property Value
    Type Description
    Collider
    Remarks

    This should be larger than or positioned away from the snapToCollider. Changing this value at runtime does not alter the enabled state of the previous collider.

    See Also
    snapToCollider
    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)