FairyGUI.DisplayObject
class FairyGUI.DisplayObject
Fields and Properties:
string name
- Description:
FairyGUI.GObject gOwner
- Description:
uint id
- Description:
FairyGUI.Container parent
- Description:
UnityEngine.GameObject gameObject
- Description:
UnityEngine.Transform cachedTransform
- Description:
FairyGUI.NGraphics graphics
- Description:
FairyGUI.NGraphics paintingGraphics
- Description:
FairyGUI.EventListener onClick
- Description:
FairyGUI.EventListener onRightClick
- Description:
FairyGUI.EventListener onTouchBegin
- Description:
FairyGUI.EventListener onTouchMove
- Description:
FairyGUI.EventListener onTouchEnd
- Description:
FairyGUI.EventListener onRollOver
- Description:
FairyGUI.EventListener onRollOut
- Description:
FairyGUI.EventListener onMouseWheel
- Description:
FairyGUI.EventListener onAddedToStage
- Description:
FairyGUI.EventListener onRemovedFromStage
- Description:
FairyGUI.EventListener onKeyDown
- Description:
FairyGUI.EventListener onClickLink
- Description:
FairyGUI.EventListener onFocusIn
- Description:
FairyGUI.EventListener onFocusOut
- Description:
float alpha
- Description:
bool grayed
- Description:
bool visible
- Description:
float x
- Description:
float y
- Description:
float z
- Description:
UnityEngine.Vector2 xy
- Description:
UnityEngine.Vector3 position
- Description:
bool pixelPerfect
- Description: If the object position is align by pixel
float width
- Description:
float height
- Description:
UnityEngine.Vector2 size
- Description:
float scaleX
- Description:
float scaleY
- Description:
UnityEngine.Vector2 scale
- Description:
float rotation
- Description:
float rotationX
- Description:
float rotationY
- Description:
UnityEngine.Vector2 skew
- Description:
bool perspective
- Description: When the object is in Screen Space, it can rotate around the X or Y axis without perspective effects. Setting perspective can simulate perspective effects.
int focalLength
- Description:
UnityEngine.Vector2 pivot
- Description:
UnityEngine.Vector3 location
- Description: This is the pivot position
UnityEngine.Material material
- Description:
string shader
- Description:
int renderingOrder
- Description:
int layer
- Description:
bool focusable
- Description: If the object can be focused?
bool tabStop
- Description: If the object can be navigated by TAB?
bool focused
- Description: If the object focused?
string cursor
- Description:
bool isDisposed
- Description:
FairyGUI.Container topmost
- Description:
FairyGUI.Stage stage
- Description:
FairyGUI.Container worldSpaceContainer
- Description:
bool touchable
- Description:
bool touchDisabled
- Description:
bool paintingMode
- Description:
bool cacheAsBitmap
- Description: Staticizes the entire display object (if it is a container, the entire display list contained within). All content is buffered to a single texture. The DC will remain as 1. CPU consumption will be minimized. However, any changes to the object will not update. When cacheAsBitmap is already set to true, calling cacheAsBitmap=true again will refresh the object once.
FairyGUI.IFilter filter
- Description:
FairyGUI.BlendMode blendMode
- Description:
UnityEngine.Transform home
- Description: Sets a default parent Transform for the object. When the object is not in the display list, this is where its GameObject is attached.
Constructors:
FairyGUI.DisplayObject.New()
Methods:
void SetXY(float, float)
- Description:
- Parameter xv:
- Parameter yv:
void SetPosition(float, float, float)
- Description:
- Parameter xv:
- Parameter yv:
- Parameter zv:
void SetSize(float, float)
- Description:
- Parameter wv:
- Parameter hv:
void EnsureSizeCorrect()
void SetScale(float, float)
- Description:
- Parameter xv:
- Parameter yv:
void EnterPaintingMode()
- Description: Enters painting mode, where the entire object will be drawn to a RenderTexture, and this texture will replace the original display content. Further operations can be performed on this texture in the onPaint callback to achieve special effects.
void EnterPaintingMode(int, FairyGUI.Margin?)
- Description: Enters painting mode, where the entire object will be drawn to a RenderTexture, and this texture will replace the original display content. Further operations can be performed on this texture in the onPaint callback to achieve special effects. Multiple requests for painting mode can be distinguished by the requestorId, which takes values of 1, 2, 4, 8, 16, and so on, with 1024 reserved internally. User-defined IDs start from 1024.
- Parameter requestId: Requestor ID.
- Parameter extend: Margin around the texture. If the processed content exceeds the original content, this setting can expand the texture.
void EnterPaintingMode(int, FairyGUI.Margin?, float)
- Description: Enters painting mode, where the entire object will be drawn to a RenderTexture, and this texture will replace the original display content. Further operations can be performed on this texture in the onPaint callback to achieve special effects. Multiple requests for painting mode can be distinguished by the requestorId, which takes values of 1, 2, 4, 8, 16, and so on, with 1024 reserved internally. User-defined IDs start from 1024.
- Parameter requestorId: Requestor ID.
- Parameter extend: Extended texture. If the processed content exceeds the original content, this setting can expand the texture.
- Parameter scale: Additional scaling factor.
void LeavePaintingMode(int)
- Description: Leaves painting mode.
- Parameter requestId:
UnityEngine.Texture2D GetScreenShot(FairyGUI.Margin?, float)
- Description:
- Parameter extend:
- Parameter scale:
- Return:
UnityEngine.Rect GetBounds(FairyGUI.DisplayObject)
- Description:
- Parameter targetSpace:
- Return:
UnityEngine.Vector2 GlobalToLocal(UnityEngine.Vector2)
- Description: Transform Vector from Global To Local.
- Parameter point:
- Return:
UnityEngine.Vector2 LocalToGlobal(UnityEngine.Vector2)
- Description: Transform Vector from Local To Global.
- Parameter point:
- Return:
UnityEngine.Vector3 WorldToLocal(UnityEngine.Vector3, UnityEngine.Vector3)
- Description: Transform a world to an equivalent local xy. The equivalent means that their positions seen in the screen direction are the same. The returned point is in the object's local coordinate space, and z=0.
- Parameter worldPoint:
- Parameter direction:
- Return:
UnityEngine.Vector3 LocalToWorld(UnityEngine.Vector3)
- Description:
- Parameter localPoint:
- Return:
UnityEngine.Vector2 TransformPoint(UnityEngine.Vector2, FairyGUI.DisplayObject)
- Description:
- Parameter point:
- Parameter targetSpace: null if to world space
- Return:
UnityEngine.Rect TransformRect(UnityEngine.Rect, FairyGUI.DisplayObject)
- Description:
- Parameter rect:
- Parameter targetSpace: null if to world space
- Return:
void RemoveFromParent()
- Description:
void InvalidateBatchingState()
- Description:
void Dispose()