Click or drag to resize

Stage Class

Inheritance Hierarchy
SystemObject
  FairyGUIEventDispatcher
    FairyGUIDisplayObject
      FairyGUIContainer
        FairyGUIStage

Namespace:  FairyGUI
Assembly:  FairyGUI (in FairyGUI.dll) Version: 1.0.0.0 (1.0.0.0)
Syntax
C#
public class Stage : Container

The Stage type exposes the following members.

Constructors
  NameDescription
Public methodStage
Initializes a new instance of the Stage class
Top
Properties
  NameDescription
Public propertyalpha
(Inherited from DisplayObject.)
Public propertyblendMode
(Inherited from DisplayObject.)
Public propertycacheAsBitmap
将整个显示对象(如果是容器,则容器包含的整个显示列表)静态化,所有内容被缓冲到一张纹理上。 DC将保持为1。CPU消耗将降到最低。但对象的任何变化不会更新。 当cacheAsBitmap已经为true时,再次调用cacheAsBitmap=true将会刷新一次。
(Inherited from DisplayObject.)
Public propertycachedTransform
(Inherited from DisplayObject.)
Public propertyclipRect
(Inherited from Container.)
Public propertycontentRect
(Inherited from Container.)
Public propertyfairyBatching
(Inherited from Container.)
Public propertyfilter
(Inherited from DisplayObject.)
Public propertyfocalLength
(Inherited from DisplayObject.)
Public propertyfocus
Public propertygameObject
(Inherited from DisplayObject.)
Public propertygraphics
(Inherited from DisplayObject.)
Public propertygrayed
(Inherited from DisplayObject.)
Public propertyheight
(Inherited from DisplayObject.)
Public propertyhome
为对象设置一个默认的父Transform。当对象不在显示列表里时,它的GameObject挂到哪里。
(Inherited from DisplayObject.)
Public propertyStatic memberinst
Public propertyisDisposed
(Inherited from DisplayObject.)
Public propertyStatic memberisTouchOnUI
Public propertykeyboard
Public propertyStatic memberkeyboardInput
如果是true,表示使用屏幕上弹出的键盘输入文字。常见于移动设备。 如果是false,表示是接受按键消息输入文字。常见于PC。 一般来说,不需要设置,底层会自动根据系统环境设置正确的值。
Public propertylayer
(Inherited from DisplayObject.)
Public propertylocation
This is the pivot position
(Inherited from DisplayObject.)
Public propertymask
(Inherited from Container.)
Public propertymaterial
(Inherited from DisplayObject.)
Public propertynumChildren
(Inherited from Container.)
Public propertyonAddedToStage
(Inherited from DisplayObject.)
Public propertyonClick
(Inherited from DisplayObject.)
Public propertyonClickLink
(Inherited from DisplayObject.)
Public propertyonKeyDown
(Inherited from DisplayObject.)
Public propertyonMouseWheel
(Inherited from DisplayObject.)
Public propertyonRemovedFromStage
(Inherited from DisplayObject.)
Public propertyonRightClick
(Inherited from DisplayObject.)
Public propertyonRollOut
(Inherited from DisplayObject.)
Public propertyonRollOver
(Inherited from DisplayObject.)
Public propertyonStageResized
Public propertyonTouchBegin
(Inherited from DisplayObject.)
Public propertyonTouchEnd
(Inherited from DisplayObject.)
Public propertyonTouchMove
(Inherited from DisplayObject.)
Public propertypaintingGraphics
(Inherited from DisplayObject.)
Public propertypaintingMode
(Inherited from DisplayObject.)
Public propertyparent
(Inherited from DisplayObject.)
Public propertyperspective
当对象处于ScreenSpace,也就是使用正交相机渲染时,对象虽然可以绕X轴或者Y轴旋转,但没有透视效果。设置perspective,可以模拟出透视效果。
(Inherited from DisplayObject.)
Public propertypivot
(Inherited from DisplayObject.)
Public propertyposition
(Inherited from DisplayObject.)
Public propertyrenderingOrder
(Inherited from DisplayObject.)
Public propertyrotation
(Inherited from DisplayObject.)
Public propertyrotationX
(Inherited from DisplayObject.)
Public propertyrotationY
(Inherited from DisplayObject.)
Public propertyscale
(Inherited from DisplayObject.)
Public propertyscaleX
(Inherited from DisplayObject.)
Public propertyscaleY
(Inherited from DisplayObject.)
Public propertyshader
(Inherited from DisplayObject.)
Public propertysize
(Inherited from DisplayObject.)
Public propertyskew
(Inherited from DisplayObject.)
Public propertysoundVolume
Public propertystage
(Inherited from DisplayObject.)
Public propertystageHeight
Public propertystageWidth
Public propertytopmost
(Inherited from DisplayObject.)
Public propertytouchable
(Inherited from Container.)
Public propertytouchCount
Public propertytouchPosition
Public propertyStatic membertouchScreen
如果是true,表示触摸输入,将使用Input.GetTouch接口读取触摸屏输入。 如果是false,表示使用鼠标输入,将使用Input.GetMouseButtonXXX接口读取鼠标输入。 一般来说,不需要设置,底层会自动根据系统环境设置正确的值。
Public propertytouchTarget
Public propertyvisible
(Inherited from DisplayObject.)
Public propertywidth
(Inherited from DisplayObject.)
Public propertyworldSpaceContainer
(Inherited from DisplayObject.)
Public propertyx
(Inherited from DisplayObject.)
Public propertyxy
(Inherited from DisplayObject.)
Public propertyy
(Inherited from DisplayObject.)
Public propertyz
(Inherited from DisplayObject.)
Top
Methods
  NameDescription
Public methodAddChild
(Inherited from Container.)
Public methodAddChildAt
(Inherited from Container.)
Public methodAddEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodAddEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodAddTouchMonitor
Public methodApplyPanelOrder
设置UIPanel/UIPainter等的渲染层次,由UIPanel等内部调用。开发者不需要调用。
Public methodBroadcastEvent
(Inherited from EventDispatcher.)
Public methodBubbleEvent
(Inherited from EventDispatcher.)
Public methodCancelClick
Public methodChangeChildrenOrder
(Inherited from Container.)
Public methodCloseKeyboard
Public methodContains
(Inherited from Container.)
Public methodDisableSound
Public methodDispatchEvent(String)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(EventContext)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object)
(Inherited from EventDispatcher.)
Public methodDispatchEvent(String, Object, Object) (Inherited from EventDispatcher.)
Public methodDispose
Releases all resources used by the Stage
(Overrides ContainerDispose.)
Public methodEnableSound
Public methodEnsureSizeCorrect (Inherited from DisplayObject.)
Public methodEnterPaintingMode
进入绘画模式,整个对象将画到一张RenderTexture上,然后这种贴图将代替原有的显示内容。 可以在onPaint回调里对这张纹理进行进一步操作,实现特殊效果。 可能有多个地方要求进入绘画模式,这里用requestorId加以区别,取值是1、2、4、8、16以此类推。1024内内部保留。用户自定义的id从1024开始。
(Inherited from DisplayObject.)
Public methodGetAllTouch
Public methodGetBounds (Inherited from Container.)
Public methodGetChild
(Inherited from Container.)
Public methodGetChildAt
(Inherited from Container.)
Public methodGetChildIndex
(Inherited from Container.)
Public methodGetHitTestLocalPoint
(Inherited from Container.)
Public methodGetRenderCamera
(Inherited from Container.)
Public methodGetTouchPosition
Public methodGlobalToLocal
将舞台坐标转换为本地坐标
(Inherited from DisplayObject.)
Public methodHitTest
(Inherited from Container.)
Public methodInputString
输入字符到当前光标位置
Public methodStatic memberInstantiate
Public methodInvalidateBatchingState
(Inherited from DisplayObject.)
Public methodInvalidateBatchingState(Boolean)
(Inherited from Container.)
Public methodIsAncestorOf
(Inherited from Container.)
Public methodLeavePaintingMode
离开绘画模式
(Inherited from DisplayObject.)
Public methodLocalToGlobal
将本地坐标转换为舞台坐标
(Inherited from DisplayObject.)
Public methodMonitorTexture
Public methodOpenKeyboard
Public methodPlayOneShotSound(AudioClip)
Public methodPlayOneShotSound(AudioClip, Single)
Public methodRemoveChild(DisplayObject)
(Inherited from Container.)
Public methodRemoveChild(DisplayObject, Boolean)
(Inherited from Container.)
Public methodRemoveChildAt(Int32)
(Inherited from Container.)
Public methodRemoveChildAt(Int32, Boolean)
(Inherited from Container.)
Public methodRemoveChildren
(Inherited from Container.)
Public methodRemoveChildren(Int32, Int32, Boolean)
(Inherited from Container.)
Public methodRemoveEventListener(String, EventCallback0)
(Inherited from EventDispatcher.)
Public methodRemoveEventListener(String, EventCallback1)
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners
(Inherited from EventDispatcher.)
Public methodRemoveEventListeners(String)
(Inherited from EventDispatcher.)
Public methodRemoveFromParent
(Inherited from DisplayObject.)
Public methodRemoveTouchMonitor
Public methodResetInputState
Public methodSetChildIndex
(Inherited from Container.)
Public methodSetChildrenLayer
s
(Inherited from Container.)
Public methodSetCustomInput(RaycastHit, Boolean)
Public methodSetCustomInput(Vector2, Boolean)
Public methodSetCustomInput(RaycastHit, Boolean, Boolean)
Public methodSetCustomInput(Vector2, Boolean, Boolean)
Public methodSetPosition
(Inherited from DisplayObject.)
Public methodSetScale
(Inherited from DisplayObject.)
Public methodSetSize
(Inherited from DisplayObject.)
Public methodSetXY
(Inherited from DisplayObject.)
Public methodSortWorldSpacePanelsByZOrder
Adjust display order of all UIPanels rendering in worldspace by their z order.
Public methodSwapChildren
(Inherited from Container.)
Public methodSwapChildrenAt
(Inherited from Container.)
Public methodTransformPoint
(Inherited from DisplayObject.)
Public methodTransformRect
(Inherited from DisplayObject.)
Public methodUpdate (Inherited from Container.)
Public methodWorldToLocal
转换世界坐标点到等效的本地xy平面的点。等效的意思是他们在屏幕方向看到的位置一样。 返回的点是在对象的本地坐标空间,且z=0
(Inherited from DisplayObject.)
Top
Fields
  NameDescription
Public fieldclipSoftness
(Inherited from Container.)
Public fieldgOwner
(Inherited from DisplayObject.)
Public fieldhitArea
(Inherited from Container.)
Public fieldid
(Inherited from DisplayObject.)
Public fieldname
(Inherited from DisplayObject.)
Public fieldonPaint
(Inherited from DisplayObject.)
Public fieldonUpdate
(Inherited from Container.)
Public fieldopaque
(Inherited from Container.)
Public fieldrenderCamera
(Inherited from Container.)
Public fieldrenderMode
(Inherited from Container.)
Public fieldreversedMask
(Inherited from Container.)
Public fieldtouchChildren
(Inherited from Container.)
Top
See Also