Class FlexalonVirtualResult
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
This component is added to each object in a layout. It stores the results of the layout process so they can be loaded from a scene/prefab without rerunning layout.
public class FlexalonVirtualResult : IFlexalonResult
- Inheritance
-
objectFlexalonVirtualResult
- Implements
Properties
AdapterBounds
Bounds deteremined by IFlexalonAdapter.Measure function.
public Bounds AdapterBounds { get; set; }
Property Value
- Bounds
AdapterInputSize
Size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.
public Vector3 AdapterInputSize { get; set; }
Property Value
- Vector3
ChildCount
Number of children in this layout
public int ChildCount { get; set; }
Property Value
- int
ComponentScale
What the component updater thinks the scale should be in layout space.
public Vector3 ComponentScale { get; set; }
Property Value
- Vector3
DelegateLayoutToParent
True if this node delegates its measure/arrange layout to its parent.
public bool DelegateLayoutToParent { get; set; }
Property Value
- bool
Dependency
Dependency used to compute this result.
public GameObject Dependency { get; set; }
Property Value
- GameObject
Dirty
Measure / Arrange / Constrain flags
public DirtyFlags Dirty { get; set; }
Property Value
FillSize
Allocated size for this child when using fill size.
public Vector3 FillSize { get; set; }
Property Value
- Vector3
HasResult
True once Flexalon has computed a layout result for this node.
public bool HasResult { get; set; }
Property Value
- bool
LayoutBounds
Combined bounds of IFlexalonLayout.Measure function and IFlexalonAdapter.Measure functions.
public Bounds LayoutBounds { get; set; }
Property Value
- Bounds
LayoutPosition
Arranged position in parent layout space.
public Vector3 LayoutPosition { get; set; }
Property Value
- Vector3
LayoutRotation
Arranged rotation in parent layout space.
public Quaternion LayoutRotation { get; set; }
Property Value
- Quaternion
MaxSize
Maximum size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.
public Vector3 MaxSize { get; set; }
Property Value
- Vector3
MinSize
Minimum size passed to the IFlexalonAdapter.Measure call that produced AdapterBounds.
public Vector3 MinSize { get; set; }
Property Value
- Vector3
Parent
Parent layout
public Transform Parent { get; set; }
Property Value
- Transform
ParentLayoutSize
Parent layout size
public Vector3 ParentLayoutSize { get; set; }
Property Value
- Vector3
RotatedAndScaledBounds
Bounds after layout, scale and rotation used in the parent layout.
public Bounds RotatedAndScaledBounds { get; set; }
Property Value
- Bounds
ShrinkSize
Reduced size if parent doesn't have space for child.
public Vector3 ShrinkSize { get; set; }
Property Value
- Vector3
SiblingIndex
Index in layout
public int SiblingIndex { get; set; }
Property Value
- int
TargetBounds
Expected layout bounds in transform parent space.
public Bounds TargetBounds { get; set; }
Property Value
- Bounds
TargetPosition
Expected local position set by the layout system.
public Vector3 TargetPosition { get; set; }
Property Value
- Vector3
TargetRectSize
Expected rect size set by the layout system.
public Vector2 TargetRectSize { get; set; }
Property Value
- Vector2
TargetRotation
Expected local rotation set by the layout system.
public Quaternion TargetRotation { get; set; }
Property Value
- Quaternion
TargetScale
Expected local scale set by the layout system.
public Vector3 TargetScale { get; set; }
Property Value
- Vector3
TransformDirty
Local placement and transform invalidation flags.
public TransformFlags TransformDirty { get; set; }
Property Value
TransformPosition
Last position set by transform updater. Used to detect unexpected changes.
public Vector3 TransformPosition { get; set; }
Property Value
- Vector3
TransformRectPivot
Last rect pivot observed by the layout system. Used to detect unexpected changes.
public Vector2 TransformRectPivot { get; set; }
Property Value
- Vector2
TransformRectSize
Last rect size set by layout system. Used to detect unexpected changes.
public Vector2 TransformRectSize { get; set; }
Property Value
- Vector2
TransformRotation
Last rotation set by transform updater. Used to detect unexpected changes.
public Quaternion TransformRotation { get; set; }
Property Value
- Quaternion
TransformScale
Last scale set by transform updater. Used to detect unexpected changes.
public Vector3 TransformScale { get; set; }
Property Value
- Vector3
TransformUpdate
Tracks if UpdateTransforms is needed
public TransformFlags TransformUpdate { get; set; }