Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetCullingParameters(Camera, int, out ScriptableCullingParameters)

Gets culling parameters for a specific culling pass index.
Read time 1 minuteLast updated 12 days ago

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.