docs.unity.cn
    Show / Hide Table of Contents

    Enum GraphicRaycaster.BlockingObjects

    Type of raycasters to check against to check for canvas blocking elements.

    Namespace: UnityEngine.UI
    Syntax
    public enum BlockingObjects

    Fields

    Name Description Value
    None

    Perform no raycasts.


    0
    TwoD

    Perform a 2D raycast check to check for blocking 2D elements


    1
    ThreeD

    Perform a 3D raycast check to check for blocking 3D elements


    2
    All

    Perform a 2D and a 3D raycasts to check for blocking 2D and 3D elements.


    3
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on 12 June 2023