Legacy Documentation: Version 4.5.0

Script language:

  • JS
  • C#
  • Boo
Script language

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

Graphics

Namespace: UnityEngine

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 buffer (Read Only).

Static Functions

BlitCopies source texture into destination render texture.
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.
SetRandomWriteTargetSet random write target for DX11 pixel shaders.
SetRenderTargetSets current render target.