GUIStyle.CalcSize 计算大小

function CalcSize (content : GUIContent) : Vector2

Description描述

Calculate the size of a some content if it is rendered with this style.

计算该样式渲染的一些内容的大小。

This function does not take wordwrapping into account. To do that, you need to determine the allocated width and then call CalcHeight to figure out the wordwrapped height.

这个函数不考虑自动换行。为此,以需要确定以分配宽度,然后调用CalcHeight去计算已换行的高度。

Page last updated: 2011-1-23