Legacy Documentation: Version 2018.1 (Go to current version)
LanguageEnglish
  • C#
  • JS

Script language

Select your preferred scripting language. All code snippets will be displayed in this language.

CommandBuffer.EnableScissorRect

public void EnableScissorRect(Rect scissor);

Parameters

scissorViewport 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.

See Also: DisableScissorRect.

Did you find this page useful? Please give it a rating: