Stage Class |
Namespace: FairyGUI
public class Stage : Container
The Stage type exposes the following members.
| Name | Description | |
|---|---|---|
| alpha | (Inherited from DisplayObject.) | |
| blendMode | (Inherited from DisplayObject.) | |
| cacheAsBitmap |
将整个显示对象(如果是容器,则容器包含的整个显示列表)静态化,所有内容被缓冲到一张纹理上。
DC将保持为1。CPU消耗将降到最低。但对象的任何变化不会更新。
当cacheAsBitmap已经为true时,再次调用cacheAsBitmap=true将会刷新一次。
(Inherited from DisplayObject.) | |
| cachedTransform | (Inherited from DisplayObject.) | |
| clipRect | (Inherited from Container.) | |
| contentRect | (Inherited from Container.) | |
| fairyBatching | (Inherited from Container.) | |
| filter | (Inherited from DisplayObject.) | |
| focalLength | (Inherited from DisplayObject.) | |
| focus | ||
| gameObject | (Inherited from DisplayObject.) | |
| graphics | (Inherited from DisplayObject.) | |
| grayed | (Inherited from DisplayObject.) | |
| height | (Inherited from DisplayObject.) | |
| home |
为对象设置一个默认的父Transform。当对象不在显示列表里时,它的GameObject挂到哪里。
(Inherited from DisplayObject.) | |
| inst | ||
| isDisposed | (Inherited from DisplayObject.) | |
| isTouchOnUI | ||
| keyboard | ||
| keyboardInput |
如果是true,表示使用屏幕上弹出的键盘输入文字。常见于移动设备。
如果是false,表示是接受按键消息输入文字。常见于PC。
一般来说,不需要设置,底层会自动根据系统环境设置正确的值。
| |
| layer | (Inherited from DisplayObject.) | |
| location |
This is the pivot position
(Inherited from DisplayObject.) | |
| mask | (Inherited from Container.) | |
| material | (Inherited from DisplayObject.) | |
| numChildren | (Inherited from Container.) | |
| onAddedToStage | (Inherited from DisplayObject.) | |
| onClick | (Inherited from DisplayObject.) | |
| onClickLink | (Inherited from DisplayObject.) | |
| onKeyDown | (Inherited from DisplayObject.) | |
| onMouseWheel | (Inherited from DisplayObject.) | |
| onRemovedFromStage | (Inherited from DisplayObject.) | |
| onRightClick | (Inherited from DisplayObject.) | |
| onRollOut | (Inherited from DisplayObject.) | |
| onRollOver | (Inherited from DisplayObject.) | |
| onStageResized | ||
| onTouchBegin | (Inherited from DisplayObject.) | |
| onTouchEnd | (Inherited from DisplayObject.) | |
| onTouchMove | (Inherited from DisplayObject.) | |
| paintingGraphics | (Inherited from DisplayObject.) | |
| paintingMode | (Inherited from DisplayObject.) | |
| parent | (Inherited from DisplayObject.) | |
| perspective |
当对象处于ScreenSpace,也就是使用正交相机渲染时,对象虽然可以绕X轴或者Y轴旋转,但没有透视效果。设置perspective,可以模拟出透视效果。
(Inherited from DisplayObject.) | |
| pivot | (Inherited from DisplayObject.) | |
| position | (Inherited from DisplayObject.) | |
| renderingOrder | (Inherited from DisplayObject.) | |
| rotation | (Inherited from DisplayObject.) | |
| rotationX | (Inherited from DisplayObject.) | |
| rotationY | (Inherited from DisplayObject.) | |
| scale | (Inherited from DisplayObject.) | |
| scaleX | (Inherited from DisplayObject.) | |
| scaleY | (Inherited from DisplayObject.) | |
| shader | (Inherited from DisplayObject.) | |
| size | (Inherited from DisplayObject.) | |
| skew | (Inherited from DisplayObject.) | |
| soundVolume | ||
| stage | (Inherited from DisplayObject.) | |
| stageHeight | ||
| stageWidth | ||
| topmost | (Inherited from DisplayObject.) | |
| touchable | (Inherited from Container.) | |
| touchCount | ||
| touchPosition | ||
| touchScreen |
如果是true,表示触摸输入,将使用Input.GetTouch接口读取触摸屏输入。
如果是false,表示使用鼠标输入,将使用Input.GetMouseButtonXXX接口读取鼠标输入。
一般来说,不需要设置,底层会自动根据系统环境设置正确的值。
| |
| touchTarget | ||
| visible | (Inherited from DisplayObject.) | |
| width | (Inherited from DisplayObject.) | |
| worldSpaceContainer | (Inherited from DisplayObject.) | |
| x | (Inherited from DisplayObject.) | |
| xy | (Inherited from DisplayObject.) | |
| y | (Inherited from DisplayObject.) | |
| z | (Inherited from DisplayObject.) |
| Name | Description | |
|---|---|---|
| clipSoftness | (Inherited from Container.) | |
| gOwner | (Inherited from DisplayObject.) | |
| hitArea | (Inherited from Container.) | |
| id | (Inherited from DisplayObject.) | |
| name | (Inherited from DisplayObject.) | |
| onPaint | (Inherited from DisplayObject.) | |
| onUpdate | (Inherited from Container.) | |
| opaque | (Inherited from Container.) | |
| renderCamera | (Inherited from Container.) | |
| renderMode | (Inherited from Container.) | |
| reversedMask | (Inherited from Container.) | |
| touchChildren | (Inherited from Container.) |