Legacy Documentation: Version 5.4
LanguageEnglish
  • C#
  • JS

Script language

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

Graphics

class in 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/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 Shader Model 5.0 level pixel shaders.
CopyTextureCopy texture contents.
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 Shader Model 5.0 level pixel shaders.
SetRenderTargetSets current render target.