GUIStyle
- active
- alignment
- border
- CalcHeight
- CalcMinMaxWidth
- CalcScreenSize
- CalcSize
- clipping
- contentOffset
- DrawCursor
- DrawWithTextSelection
- Draw
- fixedHeight
- fixedWidth
- focused
- fontSize
- fontStyle
- font
- GetCursorPixelPosition
- GetCursorStringIndex
- GUIStyle
- hover
- imagePosition
- lineHeight
- margin
- name
- none
- normal
- onActive
- onFocused
- onHover
- onNormal
- operator GUIStyle
- overflow
- padding
- stretchHeight
- stretchWidth
- wordWrap
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去计算已换行的高度。
最后修改:2011年1月23日 Sunday 23:48