C# Class FairyGUI.Container

Inheritance: DisplayObject
显示文件 Open project: fairygui/FairyGUI-unity Class Usage Examples

Public Properties

Property Type Description
clipSoftness Vector4?
hitArea IHitTest
onUpdate EventCallback0
opaque bool
renderCamera UnityEngine.Camera
renderMode RenderMode
touchChildren bool

Public Methods

Method Description
AddChild ( DisplayObject child ) : DisplayObject

AddChildAt ( DisplayObject child, int index ) : DisplayObject

ChangeChildrenOrder ( List indice, List objs ) : void

Container ( ) : System

Container ( GameObject attachTarget ) : System

Container ( string gameObjectName ) : System

Contains ( DisplayObject child ) : bool

Dispose ( ) : void
GetBounds ( DisplayObject targetSpace ) : Rect
GetChild ( string name ) : DisplayObject

GetChildAt ( int index ) : DisplayObject

GetChildIndex ( DisplayObject child ) : int

GetHitTestLocalPoint ( ) : Vector2

GetRenderCamera ( ) : Camera

HitTest ( Vector2 stagePoint, bool forTouch ) : DisplayObject

Init ( ) : void
InvalidateBatchingState ( bool childrenChanged ) : void

IsAncestorOf ( DisplayObject obj ) : bool

RemoveChild ( DisplayObject child ) : DisplayObject

RemoveChild ( DisplayObject child, bool dispose ) : DisplayObject

RemoveChildAt ( int index ) : DisplayObject

RemoveChildAt ( int index, bool dispose ) : DisplayObject

RemoveChildren ( ) : void

RemoveChildren ( int beginIndex, int endIndex, bool dispose ) : void

SetChildIndex ( DisplayObject child, int index ) : void

SetChildrenLayer ( int value ) : void

s

SwapChildren ( DisplayObject child1, DisplayObject child2 ) : void

SwapChildrenAt ( int index1, int index2 ) : void

Update ( UpdateContext context ) : void

Protected Methods

Method Description
HitTest ( ) : DisplayObject

Private Methods

Method Description
CollectChildren ( Container initiator ) : void
DoFairyBatching ( ) : void
SetRenderingOrder ( UpdateContext context ) : void
UpdateBatchingFlags ( ) : void

Method Details

AddChild() public method

public AddChild ( DisplayObject child ) : DisplayObject
child DisplayObject
return DisplayObject

AddChildAt() public method

public AddChildAt ( DisplayObject child, int index ) : DisplayObject
child DisplayObject
index int
return DisplayObject

ChangeChildrenOrder() public method

public ChangeChildrenOrder ( List indice, List objs ) : void
indice List
objs List
return void

Container() public method

public Container ( ) : System
return System

Container() public method

public Container ( GameObject attachTarget ) : System
attachTarget UnityEngine.GameObject
return System

Container() public method

public Container ( string gameObjectName ) : System
gameObjectName string
return System

Contains() public method

public Contains ( DisplayObject child ) : bool
child DisplayObject
return bool

Dispose() public method

public Dispose ( ) : void
return void

GetBounds() public method

public GetBounds ( DisplayObject targetSpace ) : Rect
targetSpace DisplayObject
return UnityEngine.Rect

GetChild() public method

public GetChild ( string name ) : DisplayObject
name string
return DisplayObject

GetChildAt() public method

public GetChildAt ( int index ) : DisplayObject
index int
return DisplayObject

GetChildIndex() public method

public GetChildIndex ( DisplayObject child ) : int
child DisplayObject
return int

GetHitTestLocalPoint() public method

public GetHitTestLocalPoint ( ) : Vector2
return Vector2

GetRenderCamera() public method

public GetRenderCamera ( ) : Camera
return UnityEngine.Camera

HitTest() protected method

protected HitTest ( ) : DisplayObject
return DisplayObject

HitTest() public method

public HitTest ( Vector2 stagePoint, bool forTouch ) : DisplayObject
stagePoint Vector2
forTouch bool
return DisplayObject

Init() public method

public Init ( ) : void
return void

InvalidateBatchingState() public method

public InvalidateBatchingState ( bool childrenChanged ) : void
childrenChanged bool
return void

IsAncestorOf() public method

public IsAncestorOf ( DisplayObject obj ) : bool
obj DisplayObject
return bool

RemoveChild() public method

public RemoveChild ( DisplayObject child ) : DisplayObject
child DisplayObject
return DisplayObject

RemoveChild() public method

public RemoveChild ( DisplayObject child, bool dispose ) : DisplayObject
child DisplayObject
dispose bool
return DisplayObject

RemoveChildAt() public method

public RemoveChildAt ( int index ) : DisplayObject
index int
return DisplayObject

RemoveChildAt() public method

public RemoveChildAt ( int index, bool dispose ) : DisplayObject
index int
dispose bool
return DisplayObject

RemoveChildren() public method

public RemoveChildren ( ) : void
return void

RemoveChildren() public method

public RemoveChildren ( int beginIndex, int endIndex, bool dispose ) : void
beginIndex int
endIndex int
dispose bool
return void

SetChildIndex() public method

public SetChildIndex ( DisplayObject child, int index ) : void
child DisplayObject
index int
return void

SetChildrenLayer() public method

s
public SetChildrenLayer ( int value ) : void
value int
return void

SwapChildren() public method

public SwapChildren ( DisplayObject child1, DisplayObject child2 ) : void
child1 DisplayObject
child2 DisplayObject
return void

SwapChildrenAt() public method

public SwapChildrenAt ( int index1, int index2 ) : void
index1 int
index2 int
return void

Update() public method

public Update ( UpdateContext context ) : void
context UpdateContext
return void

Property Details

clipSoftness public_oe property

public Vector4? clipSoftness
return Vector4?

hitArea public_oe property

public IHitTest hitArea
return IHitTest

onUpdate public_oe property

public EventCallback0 onUpdate
return EventCallback0

opaque public_oe property

public bool opaque
return bool

renderCamera public_oe property

public Camera,UnityEngine renderCamera
return UnityEngine.Camera

renderMode public_oe property

public RenderMode renderMode
return RenderMode

touchChildren public_oe property

public bool touchChildren
return bool