Skip to main content

Relations

Namespace:FairyGUI
Source:Assets/Scripts/UI/Relations.cs (line 10)

public class Relations

Constructors​

Relations(GObject)​

public Relations(GObject owner);
ParameterTypeDescription
ownerGObject

Source:UI/Relations.cs (line 17)

Fields​

handling​

public GObject handling;

Source:UI/Relations.cs (line 15)

Methods​

Add(GObject, RelationType)​

public void Add(GObject target, RelationType relationType);
ParameterTypeDescription
targetGObject
relationTypeRelationType

Source:UI/Relations.cs (line 28)

Add(GObject, RelationType, bool)​

public void Add(GObject target, RelationType relationType, bool usePercent);
ParameterTypeDescription
targetGObject
relationTypeRelationType
usePercentbool

Source:UI/Relations.cs (line 39)

ClearAll()​

public void ClearAll();

Source:UI/Relations.cs (line 128)

ClearFor(GObject)​

public void ClearFor(GObject target);
ParameterTypeDescription
targetGObject

Source:UI/Relations.cs (line 107)

Contains(GObject)​

public bool Contains(GObject target);
ParameterTypeDescription
targetGObject

Source:UI/Relations.cs (line 91)

CopyFrom(Relations)​

public void CopyFrom(Relations source);
ParameterTypeDescription
sourceRelations

Source:UI/Relations.cs (line 143)

Dispose()​

public void Dispose();

Source:UI/Relations.cs (line 159)

OnOwnerSizeChanged(float, float, bool)​

public void OnOwnerSizeChanged(float dWidth, float dHeight, bool applyPivot);
ParameterTypeDescription
dWidthfloat
dHeightfloat
applyPivotbool

Source:UI/Relations.cs (line 171)

Remove(GObject, RelationType)​

public void Remove(GObject target, RelationType relationType);
ParameterTypeDescription
targetGObject
relationTypeRelationType

Source:UI/Relations.cs (line 62)

Setup(ByteBuffer, bool)​

public void Setup(ByteBuffer buffer, bool parentToChild);
ParameterTypeDescription
bufferByteBuffer
parentToChildbool

Source:UI/Relations.cs (line 192)

Properties​

isEmpty​

public bool isEmpty { get; }

Source:UI/Relations.cs (line 184)