DisplayObject Class |
Namespace: FairyGUI
public class DisplayObject : EventDispatcher
The DisplayObject type exposes the following members.
Name | Description | |
---|---|---|
DisplayObject | Initializes a new instance of the DisplayObject class |
Name | Description | |
---|---|---|
alpha | ||
blendMode | ||
cacheAsBitmap |
将整个显示对象(如果是容器,则容器包含的整个显示列表)静态化,所有内容被缓冲到一张纹理上。
DC将保持为1。CPU消耗将降到最低。但对象的任何变化不会更新。
当cacheAsBitmap已经为true时,再次调用cacheAsBitmap=true将会刷新一次。
| |
cachedTransform | ||
filter | ||
focalLength | ||
gameObject | ||
graphics | ||
grayed | ||
height | ||
home |
为对象设置一个默认的父Transform。当对象不在显示列表里时,它的GameObject挂到哪里。
| |
isDisposed | ||
layer | ||
location |
This is the pivot position
| |
material | ||
onAddedToStage | ||
onClick | ||
onClickLink | ||
onKeyDown | ||
onMouseWheel | ||
onRemovedFromStage | ||
onRightClick | ||
onRollOut | ||
onRollOver | ||
onTouchBegin | ||
onTouchEnd | ||
onTouchMove | ||
paintingGraphics | ||
paintingMode | ||
parent | ||
perspective |
当对象处于ScreenSpace,也就是使用正交相机渲染时,对象虽然可以绕X轴或者Y轴旋转,但没有透视效果。设置perspective,可以模拟出透视效果。
| |
pivot | ||
position | ||
renderingOrder | ||
rotation | ||
rotationX | ||
rotationY | ||
scale | ||
scaleX | ||
scaleY | ||
shader | ||
size | ||
skew | ||
stage | ||
topmost | ||
touchable | ||
visible | ||
width | ||
worldSpaceContainer | ||
x | ||
xy | ||
y | ||
z |