文档

Unity Engine

Unity Engine

TryGetCullingParameters

Get culling parameters for a camera.
阅读时间1 分钟最后更新于 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

boolFlag 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
true
and single-pass stereo is enabled.

TryGetCullingParameters(bool, ScriptableCullingParameters)

Get culling parameters for a camera.
public bool TryGetCullingParameters(bool stereoAware, out ScriptableCullingParameters cullingParameters)

Parameters

stereoAware

Generate single-pass stereo aware culling parameters.

Resultant culling parameters.

Returns

Type

Description

boolFlag 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
true
and single-pass stereo is enabled.