EditorGUI.DrawPreviewTexture 绘制预览纹理

static function DrawPreviewTexture (position : Rect, image : Texture, mat : Material = null, scaleMode : ScaleMode = ScaleMode.StretchToFill, imageAspect : float = 0) : void

Parameters参数

Description描述

Draws the texture within a rectangle.

在矩形内绘制纹理。

If mat is null (the default), an appropriate material will be chosen for a RGBM or doubleLDR lightmap or a normal map and the fallback blit material will be chosen otherwise.

如果mat为空(默认),一个适当的材料将被选择为RGBM或doubleLDR