docs.unity.cn
    Show / Hide Table of Contents

    Occluder component

    An Occluder MonoBehaviour component specifies which entities are occluders. After you attach this component to a GameObject, the baking process attaches the relevant occluder ECS components to the converted entity.

    Tip

    The Scene view provides a visual Gizmo that displays a wireframe of the assigned occluder mesh using the current settings. This helps you to position, rotate, and scale the occluder mesh, if necessary, so it's inscribed within the visual mesh.

    Occluder Inspector reference

    Property Description
    Mesh The mesh to use for occlusion culling calculations. This should be a low-poly mesh that is inscribed within the visual mesh.
    Local Position The position offset to apply to the occlusion mesh.
    Local Rotation The rotation offset to apply to the occlusion mesh.
    Local Scale The scale offset to apply to the occlusion mesh.

    Additional resource

    • Occlusion View component
    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Wednesday, September 20, 2023