Version: 2017.3

GUI.DrawTextureWithTexCoords

マニュアルに切り替える
public static void DrawTextureWithTexCoords (Rect position, Texture image, Rect texCoords);
public static void DrawTextureWithTexCoords (Rect position, Texture image, Rect texCoords, bool alphaBlend);

パラメーター

position テクスチャを描画するスクリーン上の Rect
image 表示する Texture
texCoords 描画されるものでアスペクト比が合わないときに画像をどのようにスケーリングするか
alphaBlend 画像を描画するときアルファブレンディングを適用するかどうか(デフォルトは true )。false の場合、画像がそのまま表示されます

説明

Draw a texture within a rectangle with the given texture coordinates.

Use this function for clipping or tiling the image within the given rectangle.

See Also: GUI.color, GUI.contentColor.

Copyright © 2023 Unity Technologies
优美缔软件(上海)有限公司 版权所有
"Unity"、Unity 徽标及其他 Unity 商标是 Unity Technologies 或其附属机构在美国及其他地区的商标或注册商标。其他名称或品牌是其各自所有者的商标。
公安部备案号:
31010902002961