Method FromCamera
FromCamera(Camera, NativeArray<float4>)
Populates the frustum plane array from the given camera frustum.
Declaration
public static void FromCamera(Camera camera, NativeArray<float4> planes)
Parameters
| Type | Name | Description |
|---|---|---|
| Camera | camera | The camera to use for calculation. |
| NativeArray<float4> | planes | The result of the operation. |
Exceptions
| Type | Condition |
|---|---|
| ArgumentNullException | Is thrown if the planes are empty. |
| ArgumentException | Is thrown if the planes size is not equal to 6. |