Skip to content

Graphics

Graphics类是编辑器绘图功能的原始接口。

静态方法

Graphics.Blit ( source : Texture , dest : RenderTexture ) : void
将一个渲染纹理(RenderTexture)的内容复制到另一个渲染纹理。
Graphics.DrawMeshNow ( world : Matrix4x4 , mesh : Mesh , mtl : Material ) : void
立即绘制网格。
Graphics.Clear ( clearDepth : boolean , clearColor : boolean , backgroundColor : Color , depth : number? ) : void
将当前目标渲染对象清理为指定颜色及深度。
Graphics.BlitWithMaterial ( source : Texture , dest : RenderTexture , material : Material ) : void
将一个渲染纹理(RenderTexture)的内容复制到另一个渲染纹理,同时可以进行一些可选的图像处理操作。
Graphics.FlipAndBlit ( source : Texture , dest : RenderTexture , fliped : boolean ) : void
将一个渲染纹理(RenderTexture)的内容复制到另一个渲染纹理,可以选择是否反向。
Graphics.DrawMesh ( world : Matrix4x4 , mesh : Mesh , mtl : Material , shadow_cast : ShadowCastingMode? ) : void
绘制一个网格。