Documentation

Unity Engine


User Manual

Script Reference

Unity Engine


SupportsStencil(RenderTexture)

Does a RenderTexture have stencil buffer?
Read time 1 minuteLast updated 10 days ago

Definition

  • Type: Method
  • Namespace: UnityEngine
  • Assembly: UnityEngine.CoreModule
public static bool SupportsStencil(RenderTexture rt)

Parameters

Render texture, or null for main screen.

Returns

Type

Description

bool

Remarks

If rt is null, will report the status for the main screen.