Legacy Documentation: Version 4.6.2
Language: English
  • C#
  • JS
  • Boo

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

Description

Raw interface to Unity's drawing functions.

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

Static Variables

activeColorBuffer Currently active color buffer (Read Only).
activeDepthBuffer Currently active depth buffer (Read Only).

Static Functions

Blit Copies source texture into destination render texture.
BlitMultiTap Copies source texture into destination, for multi-tap shader.
ClearRandomWriteTargets Clear random write targets for DX11 pixel shaders.
DrawMesh Draw a mesh.
DrawMeshNow Draw a mesh immediately.
DrawProcedural Draws a fully procedural geometry on the GPU.
DrawProceduralIndirect Draws a fully procedural geometry on the GPU.
DrawTexture Draw a texture in screen coordinates.
SetRandomWriteTarget Set random write target for DX11 pixel shaders.
SetRenderTarget Sets current render target.