Struct Camera2DClippingPlanes | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Struct Camera2DClippingPlanes

    Add this component to an entity with a Camera2D component to specify the distances from the camera to its near and far clipping planes. The camera draws elements between the clipping planes and ignores elements outside of them.

    Namespace: Unity.Tiny.Core2D
    Syntax
    public struct Camera2DClippingPlanes : IComponentData

    Fields

    far

    The distance to the far clipping plane. The camera does not draw anything beyond this distance.

    Declaration
    public float far
    Field Value
    Type Description
    System.Single

    near

    The distance to the near clipping plane. The camera does not draw anything closer than this distance.

    Declaration
    public float near
    Field Value
    Type Description
    System.Single

    Properties

    Default

    Declaration
    public static Camera2DClippingPlanes Default { get; }
    Property Value
    Type Description
    Camera2DClippingPlanes
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023