Class FlexalonObject
- Namespace
- Flexalon
- Assembly
- Flexalon.dll
To control the size of an object, add a Flexalon Object component to it and edit the width, height, or depth properties.
public class FlexalonObject : FlexalonComponent
- Inheritance
-
objectFlexalonObject
- Inherited Members
Properties
Depth
The fixed depth of the object.
public float Depth { get; set; }
Property Value
- float
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
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
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 rotation to scale the size of 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
Skip layout for this object.
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
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; }
Property Value
Methods
Initialize()
protected override void Initialize()
ResetProperties()
Called when the component is destroyed to reset properties on the FlexalonNode.
protected override void ResetProperties()
UpdateProperties()
Called when the component is enabled to apply properties to the FlexalonNode.
protected override void UpdateProperties()
Upgrade(int)
protected override void Upgrade(int fromVersion)
Parameters
fromVersionint