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

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.