EditorGUI.DrawTextureAlpha

切换到手册
public static void DrawTextureAlpha (Rect position, Texture image, ScaleMode scaleMode= ScaleMode.StretchToFill, float imageAspect= 0, float mipLevel= -1);

参数

position要在其中绘制纹理的屏幕矩形。
image要显示的 Texture
scaleMode当图像的宽高比不适合要绘制的宽高比时,如何缩放图像。
imageAspect用于源图像的宽高比。如果为 0(默认值),则使用图像的宽高比。
mipLevel要进行采样的 Mip 级别。如果为负值,将对纹理进行正常采样。 它会设置材质 _Mip 属性。

描述

在矩形内绘制纹理的 Alpha 通道。

另请参阅:GUI.colorGUI.contentColor


编辑器窗口中的 Alpha 纹理。