프로퍼티 | 타입 | 설명 | |
---|---|---|---|
gOwner | |||
id | uint | ||
name | string | ||
onPaint | EventCallback0 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
_captureDelegate | EventCallback0 | ||
_contentRect | |||
_ownsGameObject | bool | ||
_paintingFlag | int | ||
_paintingMargin | |||
_paintingMode | int | ||
_requireUpdateMesh | bool | ||
_skipInFairyBatching | bool | ||
_touchDisabled | bool | ||
_transformMatrix | Matrix4x4? |
메소드 | 설명 | |
---|---|---|
ApplyPivot ( ) : void | ||
Capture ( ) : void | ||
DisplayObject ( ) : FairyGUI.Utils | ||
Dispose ( ) : void | ||
EnsureSizeCorrect ( ) : void | ||
EnterPaintingMode ( int requestorId, |
进入绘画模式,整个对象将画到一张RenderTexture上,然后这种贴图将代替原有的显示内容。 可以在onPaint回调里对这张纹理进行进一步操作,实现特殊效果。 可能有多个地方要求进入绘画模式,这里用requestorId加以区别,取值是1、2、4、8、16以此类推。1024内内部保留。用户自定义的id从1024开始。
|
|
GetBounds ( |
|
|
GlobalToLocal ( |
将舞台坐标转换为本地坐标
|
|
InvalidateBatchingState ( ) : void |
|
|
LeavePaintingMode ( int requestorId ) : void |
离开绘画模式
|
|
LocalToGlobal ( |
将本地坐标转换为舞台坐标
|
|
RemoveFromParent ( ) : void |
|
|
SetPosition ( float xv, float yv, float zv ) : void |
|
|
SetScale ( float xv, float yv ) : void |
|
|
SetSize ( float wv, float hv ) : void |
|
|
SetXY ( float xv, float yv ) : void |
|
|
TransformPoint ( |
|
|
TransformRect ( |
|
|
Update ( |
||
UpdateHierarchy ( ) : void | ||
UpdatePivotOffset ( ) : void | ||
UpdateTransformMatrix ( ) : void | ||
WorldToLocal ( |
转换世界坐标点到等效的本地xy平面的点。等效的意思是他们在屏幕方向看到的位置一样。 返回的点是在对象的本地坐标空间,且z=0
|
메소드 | 설명 | |
---|---|---|
CreateGameObject ( string gameObjectName ) : void | ||
DestroyGameObject ( ) : void | ||
HitTest ( ) : |
||
InternalHitTest ( ) : |
||
InternalHitTestMask ( ) : |
||
OnSizeChanged ( bool widthChanged, bool heightChanged ) : void | ||
SetGameObject ( |
||
TransformRectPoint ( float px, float py, |
메소드 | 설명 | |
---|---|---|
InternalSetParent ( |
protected CreateGameObject ( string gameObjectName ) : void | ||
gameObjectName | string | |
리턴 | void |
public EnterPaintingMode ( int requestorId, |
||
requestorId | int | |
margin | 纹理四周的留空。如果特殊处理后的内容大于原内容,那么这里的设置可以使纹理扩大。 | |
리턴 | void |
public GetBounds ( |
||
targetSpace | ||
리턴 |
public GlobalToLocal ( |
||
point | ||
리턴 |
public LeavePaintingMode ( int requestorId ) : void | ||
requestorId | int | |
리턴 | void |
public LocalToGlobal ( |
||
point | ||
리턴 |
protected OnSizeChanged ( bool widthChanged, bool heightChanged ) : void | ||
widthChanged | bool | |
heightChanged | bool | |
리턴 | void |
protected SetGameObject ( |
||
gameObject | ||
리턴 | void |
public SetPosition ( float xv, float yv, float zv ) : void | ||
xv | float | |
yv | float | |
zv | float | |
리턴 | void |
public TransformPoint ( |
||
point | ||
targetSpace | null if to world space | |
리턴 |
public TransformRect ( |
||
rect | ||
targetSpace | null if to world space | |
리턴 |
protected TransformRectPoint ( float px, float py, |
||
px | float | |
py | float | |
targetSpace | ||
rect | ||
리턴 | void |
public WorldToLocal ( |
||
worldPoint | ||
direction | ||
리턴 |