Click or drag to resize

DisplayObject Properties

The DisplayObject type exposes the following members.

Properties
  NameDescription
Public propertyalpha
Public propertyblendMode
Public propertycacheAsBitmap
将整个显示对象(如果是容器,则容器包含的整个显示列表)静态化,所有内容被缓冲到一张纹理上。 DC将保持为1。CPU消耗将降到最低。但对象的任何变化不会更新。 当cacheAsBitmap已经为true时,再次调用cacheAsBitmap=true将会刷新一次。
Public propertycachedTransform
Public propertyfilter
Public propertyfocalLength
Public propertygameObject
Public propertygraphics
Public propertygrayed
Public propertyheight
Public propertyhome
为对象设置一个默认的父Transform。当对象不在显示列表里时,它的GameObject挂到哪里。
Public propertyisDisposed
Public propertylayer
Public propertylocation
This is the pivot position
Public propertymaterial
Public propertyonAddedToStage
Public propertyonClick
Public propertyonClickLink
Public propertyonKeyDown
Public propertyonMouseWheel
Public propertyonRemovedFromStage
Public propertyonRightClick
Public propertyonRollOut
Public propertyonRollOver
Public propertyonTouchBegin
Public propertyonTouchEnd
Public propertyonTouchMove
Public propertypaintingGraphics
Public propertypaintingMode
Public propertyparent
Public propertyperspective
当对象处于ScreenSpace,也就是使用正交相机渲染时,对象虽然可以绕X轴或者Y轴旋转,但没有透视效果。设置perspective,可以模拟出透视效果。
Public propertypivot
Public propertyposition
Public propertyrenderingOrder
Public propertyrotation
Public propertyrotationX
Public propertyrotationY
Public propertyscale
Public propertyscaleX
Public propertyscaleY
Public propertyshader
Public propertysize
Public propertyskew
Public propertystage
Public propertytopmost
Public propertytouchable
Public propertyvisible
Public propertywidth
Public propertyworldSpaceContainer
Public propertyx
Public propertyxy
Public propertyy
Public propertyz
Top
See Also