C# 클래스 FairyGUI.GObject

상속: EventDispatcher
파일 보기 프로젝트 열기: fairygui/FairyGUI-unity 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
data object
dragBounds Rect?
group FairyGUI.GGroup
name string

보호된 프로퍼티들

프로퍼티 타입 설명
_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