Version: Unity 6 Preview (6000.0)
LanguageEnglish
  • C#

CommandBuffer.ThrowOnSetRenderTarget

public static bool ThrowOnSetRenderTarget;

Description

Throw an exception when SetRenderTarget is recorded on a command buffer. This is mainly usefull when using native renderpasses to avoid inadvertently recording SetRenderTarget commands on the command buffer.