文档

Unity Engine


Unity Engine


GetCullingParameters(Camera, int, out ScriptableCullingParameters)

Gets culling parameters for a specific culling pass index.
阅读时间1 分钟最后更新于 1 个月前

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule

GetCullingParameters(Camera, int, ScriptableCullingParameters)

public void GetCullingParameters(Camera camera, int cullingPassIndex, out ScriptableCullingParameters scriptableCullingParameters)

Parameters

camera

Camera for the basis of the culling view and frustum.

cullingPassIndex

Index of the culling pass obtained from XRRenderPass.cullingPassIndex.

scriptableCullingParameters

Scriptable culling parameters to populate.

Remarks

You can obtain a culling pass index from XRRenderPass.cullingPassIndex.