返回介绍

GUIStyle.Draw 绘制

发布于 2019-12-18 15:37:49 字数 3747 浏览 892 评论 0 收藏 0

JavaScript => public function Draw(position: Rect, isHover: bool, isActive: bool, on: bool, hasKeyboardFocus: bool): void;
C# => public void Draw(Rect position, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

Parameters 参数

Description 描述

Draw this GUIStyle on to the screen, internal version.

在屏幕上绘制GUIStyle ,内部版本。

Draw plain GUIStyle without text nor image.

绘制不包含文本也不图像的普通GUIStyle。


JavaScript =>public function Draw(position: Rect, text: string, isHover: bool, isActive: bool, on: bool, hasKeyboardFocus: bool): void;
C# =>public void Draw(Rect position, string text, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

Parameters

Description

Draw the GUIStyle with a text string inside.

绘制带有文本字符串的GUIStyle。


JavaScript =>public function Draw(position: Rect, image: Texture, isHover: bool, isActive: bool, on: bool, hasKeyboardFocus: bool): void;
C# =>public void Draw(Rect position, Texture image, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

Parameters

Description

Draw the GUIStyle with an image inside. If the image is too large to fit within the content area of the style it is scaled down.

绘制带有一个图片的GUIStyle。如果图片太大而不能匹配该样式的内容区域里面,它会被缩小。


JavaScript =>public function Draw(position: Rect, content: GUIContent, controlID: int): void;
JavaScript =>public function Draw(position: Rect, content: GUIContent, controlID: int, on: bool): void;
JavaScript =>public function Draw(position: Rect, content: GUIContent, isHover: bool, isActive: bool, on: bool, hasKeyboardFocus: bool): void;
C# =>public void Draw(Rect position, GUIContent content, int controlID);
C# =>public void Draw(Rect position, GUIContent content, int controlID, bool on);
C# =>public void Draw(Rect position, GUIContent content, bool isHover, bool isActive, bool on, bool hasKeyboardFocus);

Parameters

Description

Draw the GUIStyle with text and an image inside. If the image is too large to fit within the content area of the style it is scaled down.

绘制带有文本和图片的GUIStyle。如果图片太大而不能匹配该样式的内容区域里面,它会被缩小。

guistyle

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文