Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


GetRenderTextureForRenderPass(int)

Given a render pass, return the RenderTexture instance backing that render pass. If the render pass is invalid, or if the render texture does not exist, return null.
Read time 1 minuteLast updated 5 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine.XR
  • Assembly: UnityEngine.XRModule
public RenderTexture GetRenderTextureForRenderPass(int renderPass)

Parameters

renderPass

The render pass index to get the render texture for.

Returns

Type

Description

RenderTextureThe render texture associated with that render pass, or null if not found.