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 |