Skip to content

Graphics

The Graphics class is the raw interface for the drawing functionality in the editor.

Static Methods

Graphics.Blit ( source : Texture , dest : RenderTexture ) : void
Copies the content of a render texture from one render texture to another.
Graphics.DrawMeshNow ( world : Matrix4x4 , mesh : Mesh , mtl : Material ) : void
Immediately draws a mesh.
Graphics.Clear ( clearDepth : boolean , clearColor : boolean , backgroundColor : Color , depth : number? ) : void
Clears the current target render object to the specified color and depth.
Graphics.BlitWithMaterial ( source : Texture , dest : RenderTexture , material : Material ) : void
Copy the content of a render texture to another render texture, while optionally performing some image processing operations.
Graphics.FlipAndBlit ( source : Texture , dest : RenderTexture , fliped : boolean ) : void
Copy the content of a RenderTexture to another RenderTexture, with the option to flip it.
Graphics.DrawMesh ( world : Matrix4x4 , mesh : Mesh , mtl : Material , shadow_cast : ShadowCastingMode? ) : void
Draw a mesh.