Legacy Documentation: Version 5.0
Language: English
  • C#
  • JS

Script language

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

Graphics

Namespace: UnityEngine

Suggest a change

Success!

Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.

Close

Sumbission failed

For some reason your suggested change could not be submitted. Please try again in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.

Close

Cancel

Switch to Manual

Description

Raw interface to Unity's drawing functions.

This is the high-level shortcut into the optimized mesh drawing functionality of Unity.

Static Variables

activeColorBufferCurrently active color buffer (Read Only).
activeDepthBufferCurrently active depth/stencil buffer (Read Only).

Static Functions

BlitCopies source texture into destination render texture with a shader.
BlitMultiTapCopies source texture into destination, for multi-tap shader.
ClearRandomWriteTargetsClear random write targets for DX11 pixel shaders.
DrawMeshDraw a mesh.
DrawMeshNowDraw a mesh immediately.
DrawProceduralDraws a fully procedural geometry on the GPU.
DrawProceduralIndirectDraws a fully procedural geometry on the GPU.
DrawTextureDraw a texture in screen coordinates.
ExecuteCommandBufferExecute a command buffer.
SetRandomWriteTargetSet random write target for DX11 pixel shaders.
SetRenderTargetSets current render target.