C# Класс FairyGUI.GObject

Наследование: EventDispatcher
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
data object
dragBounds Rect?
group FairyGUI.GGroup
name string

Защищенные свойства (Protected)

Свойство Тип Описание
_sizeImplType int
underConstruct bool

Private Properties

Свойство Тип Описание
DragBegin void
DragEnd void
InitDrag void
InternalSetParent void
Reset void
UpdateGearFromRelations void
__rollOut void
__rollOver void
__touchBegin void
__touchEnd void
__touchEnd2 void
__touchMove void
__touchMove2 void

Открытые методы

Метод Описание
AddRelation ( GObject target, RelationType relationType ) : void

AddRelation ( GObject target, RelationType relationType, bool usePercent ) : void

Center ( ) : void

Set the object in middle of the parent or GRoot if the parent is not set.

Center ( bool restraint ) : void

Set the object in middle of the parent or GRoot if the parent is not set.

ConstructFromResource ( ) : void
Dispose ( ) : void
GObject ( ) : System.Collections.Generic
GetGear ( int index ) : GearBase
GlobalToLocal ( Rect rect ) : Rect

GlobalToLocal ( Vector2 pt ) : Vector2

Transforms a point from global (Stage) coordinates to the local coordinate system.

HandleControllerChanged ( FairyGUI.Controller c ) : void
InvalidateBatchingState ( ) : void

Mark the fairy batching state is invalid.

LocalToGlobal ( Rect rect ) : Rect

LocalToGlobal ( Vector2 pt ) : Vector2

Transforms a point from the local coordinate system to global (Stage) coordinates.

LocalToRoot ( Vector2 pt, GRoot r ) : Vector2

Transforms a point from the local coordinate system to GRoot coordinates.

RemoveFromParent ( ) : void

RemoveRelation ( GObject target, RelationType relationType ) : void

RequestFocus ( ) : void

Request focus on this object.

RootToLocal ( Vector2 pt, GRoot r ) : Vector2

Transforms a point from the GRoot coordinate to local coordinates system.

SetHome ( GObject obj ) : void

SetPivot ( float xv, float yv ) : void

Change the x and y coordinates of the object's origin in its own coordinate space.

SetPivot ( float xv, float yv, bool asAnchor ) : void

Change the x and y coordinates of the object's origin in its own coordinate space.

SetPosition ( float xv, float yv, float zv ) : void

change the x,y,z coordinates of the object relative to the local coordinates of the parent.

SetScale ( float wv, float hv ) : void

Change the scale factor.

SetSize ( float wv, float hv ) : void

Change size.

SetSize ( float wv, float hv, bool ignorePivot ) : void

Change size.

SetXY ( float xv, float yv ) : void

change the x and y coordinates of the object relative to the local coordinates of the parent.

Setup_AfterAdd ( XML xml ) : void
Setup_BeforeAdd ( XML xml ) : void
StartDrag ( ) : void

StartDrag ( int touchId ) : void

StopDrag ( ) : void

TransformPoint ( Vector2 pt, GObject targetSpace ) : Vector2

TransformRect ( Rect rect, GObject targetSpace ) : Rect

TweenFade ( float endValue, float duration ) : Tweener
TweenMove ( Vector2 endValue, float duration ) : Tweener
TweenMoveX ( float endValue, float duration ) : Tweener
TweenMoveY ( float endValue, float duration ) : Tweener
TweenResize ( Vector2 endValue, float duration ) : Tweener
TweenRotate ( float endValue, float duration ) : Tweener
TweenScale ( Vector2 endValue, float duration ) : Tweener
TweenScaleX ( float endValue, float duration ) : Tweener
TweenScaleY ( float endValue, float duration ) : Tweener
WorldToLocal ( Vector3 pt ) : Vector2

WorldToLocal ( Vector3 pt, Camera camera ) : Vector2

Защищенные методы

Метод Описание
CreateDisplayObject ( ) : void
HandleGrayedChanged ( ) : void
HandlePositionChanged ( ) : void
HandleScaleChanged ( ) : void
HandleSizeChanged ( ) : void
SetSizeDirectly ( float wv, float hv ) : void
UpdateAlpha ( ) : void
UpdateGear ( int index ) : void

Приватные методы

Метод Описание
DragBegin ( int touchId ) : void
DragEnd ( ) : void
InitDrag ( ) : void
InternalSetParent ( GComponent value ) : void
Reset ( ) : void
UpdateGearFromRelations ( int index, float dx, float dy ) : void
__rollOut ( ) : void
__rollOver ( ) : void
__touchBegin ( EventContext context ) : void
__touchEnd ( EventContext context ) : void
__touchEnd2 ( EventContext context ) : void
__touchMove ( EventContext context ) : void
__touchMove2 ( EventContext context ) : void

Описание методов

AddRelation() публичный Метод

public AddRelation ( GObject target, RelationType relationType ) : void
target GObject
relationType RelationType
Результат void

AddRelation() публичный Метод

public AddRelation ( GObject target, RelationType relationType, bool usePercent ) : void
target GObject
relationType RelationType
usePercent bool
Результат void

Center() публичный Метод

Set the object in middle of the parent or GRoot if the parent is not set.
public Center ( ) : void
Результат void

Center() публичный Метод

Set the object in middle of the parent or GRoot if the parent is not set.
public Center ( bool restraint ) : void
restraint bool Add relations to maintain the center state.
Результат void

ConstructFromResource() публичный Метод

public ConstructFromResource ( ) : void
Результат void

CreateDisplayObject() защищенный Метод

protected CreateDisplayObject ( ) : void
Результат void

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

GObject() публичный Метод

public GObject ( ) : System.Collections.Generic
Результат System.Collections.Generic

GetGear() публичный Метод

public GetGear ( int index ) : GearBase
index int
Результат GearBase

GlobalToLocal() публичный Метод

public GlobalToLocal ( Rect rect ) : Rect
rect UnityEngine.Rect
Результат UnityEngine.Rect

GlobalToLocal() публичный Метод

Transforms a point from global (Stage) coordinates to the local coordinate system.
public GlobalToLocal ( Vector2 pt ) : Vector2
pt UnityEngine.Vector2
Результат UnityEngine.Vector2

HandleControllerChanged() публичный Метод

public HandleControllerChanged ( FairyGUI.Controller c ) : void
c FairyGUI.Controller
Результат void

HandleGrayedChanged() защищенный Метод

protected HandleGrayedChanged ( ) : void
Результат void

HandlePositionChanged() защищенный Метод

protected HandlePositionChanged ( ) : void
Результат void

HandleScaleChanged() защищенный Метод

protected HandleScaleChanged ( ) : void
Результат void

HandleSizeChanged() защищенный Метод

protected HandleSizeChanged ( ) : void
Результат void

InvalidateBatchingState() публичный Метод

Mark the fairy batching state is invalid.
public InvalidateBatchingState ( ) : void
Результат void

LocalToGlobal() публичный Метод

public LocalToGlobal ( Rect rect ) : Rect
rect UnityEngine.Rect
Результат UnityEngine.Rect

LocalToGlobal() публичный Метод

Transforms a point from the local coordinate system to global (Stage) coordinates.
public LocalToGlobal ( Vector2 pt ) : Vector2
pt UnityEngine.Vector2
Результат UnityEngine.Vector2

LocalToRoot() публичный Метод

Transforms a point from the local coordinate system to GRoot coordinates.
public LocalToRoot ( Vector2 pt, GRoot r ) : Vector2
pt UnityEngine.Vector2
r GRoot
Результат UnityEngine.Vector2

RemoveFromParent() публичный Метод

public RemoveFromParent ( ) : void
Результат void

RemoveRelation() публичный Метод

public RemoveRelation ( GObject target, RelationType relationType ) : void
target GObject
relationType RelationType
Результат void

RequestFocus() публичный Метод

Request focus on this object.
public RequestFocus ( ) : void
Результат void

RootToLocal() публичный Метод

Transforms a point from the GRoot coordinate to local coordinates system.
public RootToLocal ( Vector2 pt, GRoot r ) : Vector2
pt UnityEngine.Vector2
r GRoot
Результат UnityEngine.Vector2

SetHome() публичный Метод

public SetHome ( GObject obj ) : void
obj GObject
Результат void

SetPivot() публичный Метод

Change the x and y coordinates of the object's origin in its own coordinate space.
public SetPivot ( float xv, float yv ) : void
xv float x value in ratio
yv float y value in ratio
Результат void

SetPivot() публичный Метод

Change the x and y coordinates of the object's origin in its own coordinate space.
public SetPivot ( float xv, float yv, bool asAnchor ) : void
xv float x value in ratio
yv float y value in ratio
asAnchor bool If use the pivot as the anchor position
Результат void

SetPosition() публичный Метод

change the x,y,z coordinates of the object relative to the local coordinates of the parent.
public SetPosition ( float xv, float yv, float zv ) : void
xv float x value.
yv float y value.
zv float z value.
Результат void

SetScale() публичный Метод

Change the scale factor.
public SetScale ( float wv, float hv ) : void
wv float The horizontal scale factor.
hv float The vertical scale factor
Результат void

SetSize() публичный Метод

Change size.
public SetSize ( float wv, float hv ) : void
wv float Width value.
hv float Height value.
Результат void

SetSize() публичный Метод

Change size.
public SetSize ( float wv, float hv, bool ignorePivot ) : void
wv float Width value.
hv float Height value.
ignorePivot bool If pivot is set, the object's positon will change when its size change. Set ignorePivot=false to keep the position.
Результат void

SetSizeDirectly() защищенный Метод

protected SetSizeDirectly ( float wv, float hv ) : void
wv float
hv float
Результат void

SetXY() публичный Метод

change the x and y coordinates of the object relative to the local coordinates of the parent.
public SetXY ( float xv, float yv ) : void
xv float x value.
yv float y value.
Результат void

Setup_AfterAdd() публичный Метод

public Setup_AfterAdd ( XML xml ) : void
xml FairyGUI.Utils.XML
Результат void

Setup_BeforeAdd() публичный Метод

public Setup_BeforeAdd ( XML xml ) : void
xml FairyGUI.Utils.XML
Результат void

StartDrag() публичный Метод

public StartDrag ( ) : void
Результат void

StartDrag() публичный Метод

public StartDrag ( int touchId ) : void
touchId int
Результат void

StopDrag() публичный Метод

public StopDrag ( ) : void
Результат void

TransformPoint() публичный Метод

public TransformPoint ( Vector2 pt, GObject targetSpace ) : Vector2
pt UnityEngine.Vector2
targetSpace GObject
Результат UnityEngine.Vector2

TransformRect() публичный Метод

public TransformRect ( Rect rect, GObject targetSpace ) : Rect
rect UnityEngine.Rect
targetSpace GObject
Результат UnityEngine.Rect

TweenFade() публичный Метод

public TweenFade ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

TweenMove() публичный Метод

public TweenMove ( Vector2 endValue, float duration ) : Tweener
endValue UnityEngine.Vector2
duration float
Результат Tweener

TweenMoveX() публичный Метод

public TweenMoveX ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

TweenMoveY() публичный Метод

public TweenMoveY ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

TweenResize() публичный Метод

public TweenResize ( Vector2 endValue, float duration ) : Tweener
endValue UnityEngine.Vector2
duration float
Результат Tweener

TweenRotate() публичный Метод

public TweenRotate ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

TweenScale() публичный Метод

public TweenScale ( Vector2 endValue, float duration ) : Tweener
endValue UnityEngine.Vector2
duration float
Результат Tweener

TweenScaleX() публичный Метод

public TweenScaleX ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

TweenScaleY() публичный Метод

public TweenScaleY ( float endValue, float duration ) : Tweener
endValue float
duration float
Результат Tweener

UpdateAlpha() защищенный Метод

protected UpdateAlpha ( ) : void
Результат void

UpdateGear() защищенный Метод

protected UpdateGear ( int index ) : void
index int
Результат void

WorldToLocal() публичный Метод

public WorldToLocal ( Vector3 pt ) : Vector2
pt UnityEngine.Vector3
Результат UnityEngine.Vector2

WorldToLocal() публичный Метод

public WorldToLocal ( Vector3 pt, Camera camera ) : Vector2
pt UnityEngine.Vector3
camera UnityEngine.Camera
Результат UnityEngine.Vector2

Описание свойств

_sizeImplType защищенное свойство

protected int _sizeImplType
Результат int

data публичное свойство

User defined data.
public object data
Результат object

dragBounds публичное свойство

Restricted range of dragging.
public Rect? dragBounds
Результат Rect?

group публичное свойство

Group belonging to.
public GGroup,FairyGUI group
Результат FairyGUI.GGroup

name публичное свойство

Name of the object.
public string name
Результат string

underConstruct защищенное свойство

protected bool underConstruct
Результат bool