ドキュメント

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.