Table of Contents

Interface IFlexalonResult

Namespace
Flexalon
Assembly
Flexalon.dll

The stored results of the layout process for a node. Implemented by the Flexalon Result component, which lets results load from a scene or prefab without running layout again, and by FlexalonVirtualResult for virtual nodes.

public interface IFlexalonResult

Properties

AdapterBounds

Bounds deteremined by IFlexalonAdapter.Measure function.

Bounds AdapterBounds { get; set; }

Property Value

Bounds

AdapterInputSize

Size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.

Vector3 AdapterInputSize { get; set; }

Property Value

Vector3

ChildCount

Number of children in this layout

int ChildCount { get; set; }

Property Value

int

ComponentScale

What the component updater thinks the scale should be in layout space.

Vector3 ComponentScale { get; set; }

Property Value

Vector3

DelegateLayoutToParent

True if this node delegates its measure/arrange layout to its parent.

bool DelegateLayoutToParent { get; set; }

Property Value

bool

Dependency

Dependency used to compute this result.

GameObject Dependency { get; set; }

Property Value

GameObject

Dirty

Measure / Arrange / Constrain flags

DirtyFlags Dirty { get; set; }

Property Value

DirtyFlags

FillSize

Allocated size for this child when using fill size.

Vector3 FillSize { get; set; }

Property Value

Vector3

HasResult

True once Flexalon has computed a layout result for this node.

bool HasResult { get; set; }

Property Value

bool

LayoutBounds

Combined bounds of IFlexalonLayout.Measure function and IFlexalonAdapter.Measure functions.

Bounds LayoutBounds { get; set; }

Property Value

Bounds

LayoutPosition

Arranged position in parent layout space.

Vector3 LayoutPosition { get; set; }

Property Value

Vector3

LayoutRotation

Arranged rotation in parent layout space.

Quaternion LayoutRotation { get; set; }

Property Value

Quaternion

MaxSize

Maximum size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.

Vector3 MaxSize { get; set; }

Property Value

Vector3

MinSize

Minimum size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.

Vector3 MinSize { get; set; }

Property Value

Vector3

Parent

Parent layout

Transform Parent { get; set; }

Property Value

Transform

ParentLayoutSize

Parent layout size

Vector3 ParentLayoutSize { get; set; }

Property Value

Vector3

RotatedAndScaledBounds

Bounds after layout, scale and rotation used in the parent layout.

Bounds RotatedAndScaledBounds { get; set; }

Property Value

Bounds

ShrinkSize

Reduced size if parent doesn't have space for child.

Vector3 ShrinkSize { get; set; }

Property Value

Vector3

SiblingIndex

Index in layout

int SiblingIndex { get; set; }

Property Value

int

TargetBounds

Expected layout bounds in transform parent space.

Bounds TargetBounds { get; set; }

Property Value

Bounds

TargetPosition

Expected local position set by the layout system.

Vector3 TargetPosition { get; set; }

Property Value

Vector3

TargetRectSize

Expected rect size set by the layout system.

Vector2 TargetRectSize { get; set; }

Property Value

Vector2

TargetRotation

Expected local rotation set by the layout system.

Quaternion TargetRotation { get; set; }

Property Value

Quaternion

TargetScale

Expected local scale set by the layout system.

Vector3 TargetScale { get; set; }

Property Value

Vector3

TransformDirty

Tracks if ComputeTransforms is needed

TransformFlags TransformDirty { get; set; }

Property Value

TransformFlags

TransformPosition

Last position set by transform updater. Used to detect unexpected changes.

Vector3 TransformPosition { get; set; }

Property Value

Vector3

TransformRectPivot

Last rect pivot observed by the layout system. Used to detect unexpected changes.

Vector2 TransformRectPivot { get; set; }

Property Value

Vector2

TransformRectSize

Last rect size set by layout system. Used to detect unexpected changes.

Vector2 TransformRectSize { get; set; }

Property Value

Vector2

TransformRotation

Last rotation set by transform updater. Used to detect unexpected changes.

Quaternion TransformRotation { get; set; }

Property Value

Quaternion

TransformScale

Last scale set by transform updater. Used to detect unexpected changes.

Vector3 TransformScale { get; set; }

Property Value

Vector3

TransformUpdate

Tracks if UpdateTransforms is needed

TransformFlags TransformUpdate { get; set; }

Property Value

TransformFlags