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

CommandBuffer.EnableScissorRect

Declaration

public void EnableScissorRect(Rect scissor);

Parameters

scissor Viewport rectangle in pixel coordinates.

Description

Add a command to enable the hardware scissor rectangle.

This command can be used to clip regions of the screen from rendering.

Additional resources: DisableScissorRect.