TryGetCullingParameters
Get culling parameters for a camera.
읽는 시간 1분최근 업데이트: 한 달 전
Definition
- Type: Method
- Namespace: UnityEngine
- Assembly: UnityEngine.CoreModule
TryGetCullingParameters(ScriptableCullingParameters)
Get culling parameters for a camera.
public bool TryGetCullingParameters(out ScriptableCullingParameters cullingParameters)
Parameters
Resultant culling parameters.
Returns
Type | Description |
|---|---|
| bool | Flag indicating whether culling parameters are valid. |
Remarks
Returns false if camera is invalid to render (empty viewport rectangle, invalid clip plane setup etc.).
Both left and right stereo eyes are considered in the generated culling parameters when stereoAware is and single-pass stereo is enabled.
trueAdditional Resources: ScriptableRenderContext.Cull, ScriptableCullingParameters, ScriptableRenderContext.SetupCameraProperties, ScriptableRenderContext.StartMultiEye, ScriptableRenderContext.StopMultiEye, ScriptableRenderContext.StereoEndRender.
TryGetCullingParameters(bool, ScriptableCullingParameters)
Get culling parameters for a camera.
public bool TryGetCullingParameters(bool stereoAware, out ScriptableCullingParameters cullingParameters)
Parameters
Generate single-pass stereo aware culling parameters.
Resultant culling parameters.
Returns
Type | Description |
|---|---|
| bool | Flag indicating whether culling parameters are valid. |
Remarks
Returns false if camera is invalid to render (empty viewport rectangle, invalid clip plane setup etc.).
Both left and right stereo eyes are considered in the generated culling parameters when stereoAware is and single-pass stereo is enabled.
true