用户工具

站点工具


侧边栏



Unity3D中文文档

script:unityengine:enumerations:scalemode:scalemode

ScaleMode 缩放模式

Description 描述

Scaling mode to draw textures with.

绘制纹理的缩放模式。

Variables 变量

StretchToFillStretches the texture to fill the complete rectangle passed in to GUI.DrawTexture.
拉伸纹理,来填充整个矩形,传递到GUI.DrawTexture。
ScaleAndCropScales the texture, maintaining aspect ratio, so it completely covers the position rectangle passed to GUI.DrawTexture. If the texture is being draw to a rectangle with a different aspect ratio than the original, the image is cropped.
缩放纹理,保持高宽比,使它完全覆盖传递给GUI.DrawTexture的矩形位置。如果纹理被绘制到一个和原始纹理不同宽高比的矩形,图像将被裁切。
ScaleToFitScales the texture, maintaining aspect ratio, so it completely fits withing the position rectangle passed to GUI.DrawTexture.
缩放纹理,保持高宽比,以便它完全适配在矩形内的位置传递给GUI.DrawTexture。
script/unityengine/enumerations/scalemode/scalemode.txt · 最后更改: 2016/10/08 08:26 由 emjo