Class FlexalonVirtualObject
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
Flexalon Object settings for a virtual node, which has no GameObject. Used by the Flexalon Virtualizer to size items that aren't currently instantiated.
public class FlexalonVirtualObject : IFlexalonObject
- Inheritance
-
objectFlexalonVirtualObject
- Implements
Constructors
FlexalonVirtualObject(IFlexalonNode)
Creates settings for a virtual node.
public FlexalonVirtualObject(IFlexalonNode node)
Parameters
nodeIFlexalonNode
Properties
Depth
The fixed depth of the object.
public float Depth { get; set; }
Property Value
- float
DepthAlign
Overrides a supporting parent layout's depth alignment. Default inherits the parent layout's setting.
public AlignSelf DepthAlign { get; set; }
Property Value
DepthOfParent
The relative depth of the object.
public float DepthOfParent { get; set; }
Property Value
- float
DepthType
The depth type of the object.
public SizeType DepthType { get; set; }
Property Value
Height
The fixed height of the object.
public float Height { get; set; }
Property Value
- float
HeightOfParent
The relative height of the object.
public float HeightOfParent { get; set; }
Property Value
- float
HeightType
The height type of the object.
public SizeType HeightType { get; set; }
Property Value
HorizontalAlign
Overrides a supporting parent layout's horizontal alignment. Default inherits the parent layout's setting.
public AlignSelf HorizontalAlign { get; set; }
Property Value
Margin
Margin to add additional space around a gameObject.
public Directions Margin { get; set; }
Property Value
MarginBack
Margin to add additional space around a gameObject.
public float MarginBack { get; set; }
Property Value
- float
MarginBottom
Margin to add additional space around a gameObject.
public float MarginBottom { get; set; }
Property Value
- float
MarginFront
Margin to add additional space around a gameObject.
public float MarginFront { get; set; }
Property Value
- float
MarginLeft
Margin to add additional space around a gameObject.
public float MarginLeft { get; set; }
Property Value
- float
MarginRight
Margin to add additional space around a gameObject.
public float MarginRight { get; set; }
Property Value
- float
MarginTop
Margin to add additional space around a gameObject.
public float MarginTop { get; set; }
Property Value
- float
MaxDepth
The max fixed depth of the object.
public float MaxDepth { get; set; }
Property Value
- float
MaxDepthOfParent
The max relative depth of the object.
public float MaxDepthOfParent { get; set; }
Property Value
- float
MaxDepthType
The max depth type of the object.
public MinMaxSizeType MaxDepthType { get; set; }
Property Value
MaxHeight
The max fixed height of the object.
public float MaxHeight { get; set; }
Property Value
- float
MaxHeightOfParent
The max relative height of the object.
public float MaxHeightOfParent { get; set; }
Property Value
- float
MaxHeightType
The max height type of the object.
public MinMaxSizeType MaxHeightType { get; set; }
Property Value
MaxSize
The max fixed size of the object.
public Vector3 MaxSize { get; set; }
Property Value
- Vector3
MaxSizeOfParent
The max relative size of the object.
public Vector3 MaxSizeOfParent { get; set; }
Property Value
- Vector3
MaxWidth
The max fixed max width of the object.
public float MaxWidth { get; set; }
Property Value
- float
MaxWidthOfParent
The max relative width of the object.
public float MaxWidthOfParent { get; set; }
Property Value
- float
MaxWidthType
The max width type of the object.
public MinMaxSizeType MaxWidthType { get; set; }
Property Value
MinDepth
The min fixed depth of the object.
public float MinDepth { get; set; }
Property Value
- float
MinDepthOfParent
The min relative depth of the object.
public float MinDepthOfParent { get; set; }
Property Value
- float
MinDepthType
The min depth type of the object.
public MinMaxSizeType MinDepthType { get; set; }
Property Value
MinHeight
The min fixed height of the object.
public float MinHeight { get; set; }
Property Value
- float
MinHeightOfParent
The min relative height of the object.
public float MinHeightOfParent { get; set; }
Property Value
- float
MinHeightType
The min height type of the object.
public MinMaxSizeType MinHeightType { get; set; }
Property Value
MinSize
The min fixed size of the object.
public Vector3 MinSize { get; set; }
Property Value
- Vector3
MinSizeOfParent
The min relative size of the object.
public Vector3 MinSizeOfParent { get; set; }
Property Value
- Vector3
MinWidth
The min fixed min width of the object.
public float MinWidth { get; set; }
Property Value
- float
MinWidthOfParent
The min relative width of the object.
public float MinWidthOfParent { get; set; }
Property Value
- float
MinWidthType
The min width type of the object.
public MinMaxSizeType MinWidthType { get; set; }
Property Value
Node
The virtual node these settings apply to.
public IFlexalonNode Node { get; }
Property Value
Offset
Use offset to add an offset to the final position of the gameObject after layout is complete.
public Vector3 Offset { get; set; }
Property Value
- Vector3
Padding
Padding to reduce available space inside a layout.
public Directions Padding { get; set; }
Property Value
PaddingBack
Padding to reduce available space inside a layout.
public float PaddingBack { get; set; }
Property Value
- float
PaddingBottom
Padding to reduce available space inside a layout.
public float PaddingBottom { get; set; }
Property Value
- float
PaddingFront
Padding to reduce available space inside a layout.
public float PaddingFront { get; set; }
Property Value
- float
PaddingLeft
Padding to reduce available space inside a layout.
public float PaddingLeft { get; set; }
Property Value
- float
PaddingRight
Padding to reduce available space inside a layout.
public float PaddingRight { get; set; }
Property Value
- float
PaddingTop
Padding to reduce available space inside a layout.
public float PaddingTop { get; set; }
Property Value
- float
Rotation
Use rotation to set the rotation of the gameObject before layout runs. This will generate a new size to encapsulate the rotated object.
public Quaternion Rotation { get; set; }
Property Value
- Quaternion
Scale
Use scale to resize the gameObject before layout runs. This will generate a new size to encapsulate the scaled object.
public Vector3 Scale { get; set; }
Property Value
- Vector3
Size
The fixed size of the object.
public Vector3 Size { get; set; }
Property Value
- Vector3
SizeOfParent
The relative size of the object.
public Vector3 SizeOfParent { get; set; }
Property Value
- Vector3
SkipLayout
Always false. Use IFlexalonNode.Detach to remove a virtual node from its layout.
public bool SkipLayout { get; set; }
Property Value
- bool
UseDefaultAdapter
The 'adapter' on a Flexalon Object is used to control how the object is measured and scaled. If you don't supply a custom adapter, then Flexalon will use a default adapter for common Unity components like MeshRenderer, TextMeshPro, etc. Use this property to disable that adapter and treat this Flexalon Object as an empty gameObject.
public bool UseDefaultAdapter { get; set; }
Property Value
- bool
VerticalAlign
Overrides a supporting parent layout's vertical alignment. Default inherits the parent layout's setting.
public AlignSelf VerticalAlign { get; set; }
Property Value
Width
The fixed width of the object.
public float Width { get; set; }
Property Value
- float
WidthOfParent
The relative width of the object.
public float WidthOfParent { get; set; }
Property Value
- float
WidthType
The width type of the object.
public SizeType WidthType { get; set; }