Class FlexalonObject
To control the size of an object, add a Flexalon Object component to it and edit the width, height, or depth properties.
Inheritance
Inherited Members
Syntax
[DisallowMultipleComponent]
[AddComponentMenu("Flexalon/Flexalon Object")]
[HelpURL("https://www.flexalon.com/docs/flexalonObject")]
public class FlexalonObject : FlexalonComponent
Properties
Depth
The fixed depth of the object.
Declaration
public float Depth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
DepthOfParent
The relative depth of the object.
Declaration
public float DepthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
DepthType
The depth type of the object.
Declaration
public SizeType DepthType { get; set; }
Property Value
| Type | Description |
|---|---|
| SizeType |
Height
The fixed height of the object.
Declaration
public float Height { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
HeightOfParent
The relative height of the object.
Declaration
public float HeightOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
HeightType
The height type of the object.
Declaration
public SizeType HeightType { get; set; }
Property Value
| Type | Description |
|---|---|
| SizeType |
Margin
Margin to add additional space around a gameObject.
Declaration
public Directions Margin { get; set; }
Property Value
| Type | Description |
|---|---|
| Directions |
MarginBack
Margin to add additional space around a gameObject.
Declaration
public float MarginBack { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MarginBottom
Margin to add additional space around a gameObject.
Declaration
public float MarginBottom { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MarginFront
Margin to add additional space around a gameObject.
Declaration
public float MarginFront { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MarginLeft
Margin to add additional space around a gameObject.
Declaration
public float MarginLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MarginRight
Margin to add additional space around a gameObject.
Declaration
public float MarginRight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MarginTop
Margin to add additional space around a gameObject.
Declaration
public float MarginTop { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxDepth
The max fixed depth of the object.
Declaration
public float MaxDepth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxDepthOfParent
The max relative depth of the object.
Declaration
public float MaxDepthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxDepthType
The max depth type of the object.
Declaration
public MinMaxSizeType MaxDepthType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
MaxHeight
The max fixed height of the object.
Declaration
public float MaxHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxHeightOfParent
The max relative height of the object.
Declaration
public float MaxHeightOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxHeightType
The max height type of the object.
Declaration
public MinMaxSizeType MaxHeightType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
MaxSize
The max fixed size of the object.
Declaration
public Vector3 MaxSize { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
MaxSizeOfParent
The max relative size of the object.
Declaration
public Vector3 MaxSizeOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
MaxWidth
The max fixed max width of the object.
Declaration
public float MaxWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxWidthOfParent
The max relative width of the object.
Declaration
public float MaxWidthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MaxWidthType
The max width type of the object.
Declaration
public MinMaxSizeType MaxWidthType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
MinDepth
The min fixed depth of the object.
Declaration
public float MinDepth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinDepthOfParent
The min relative depth of the object.
Declaration
public float MinDepthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinDepthType
The min depth type of the object.
Declaration
public MinMaxSizeType MinDepthType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
MinHeight
The min fixed height of the object.
Declaration
public float MinHeight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinHeightOfParent
The min relative height of the object.
Declaration
public float MinHeightOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinHeightType
The min height type of the object.
Declaration
public MinMaxSizeType MinHeightType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
MinSize
The min fixed size of the object.
Declaration
public Vector3 MinSize { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
MinSizeOfParent
The min relative size of the object.
Declaration
public Vector3 MinSizeOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
MinWidth
The min fixed min width of the object.
Declaration
public float MinWidth { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinWidthOfParent
The min relative width of the object.
Declaration
public float MinWidthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
MinWidthType
The min width type of the object.
Declaration
public MinMaxSizeType MinWidthType { get; set; }
Property Value
| Type | Description |
|---|---|
| MinMaxSizeType |
Offset
Use offset to add an offset to the final position of the gameObject after layout is complete.
Declaration
public Vector3 Offset { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
Padding
Padding to reduce available space inside a layout.
Declaration
public Directions Padding { get; set; }
Property Value
| Type | Description |
|---|---|
| Directions |
PaddingBack
Padding to reduce available space inside a layout.
Declaration
public float PaddingBack { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PaddingBottom
Padding to reduce available space inside a layout.
Declaration
public float PaddingBottom { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PaddingFront
Padding to reduce available space inside a layout.
Declaration
public float PaddingFront { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PaddingLeft
Padding to reduce available space inside a layout.
Declaration
public float PaddingLeft { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PaddingRight
Padding to reduce available space inside a layout.
Declaration
public float PaddingRight { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
PaddingTop
Padding to reduce available space inside a layout.
Declaration
public float PaddingTop { get; set; }
Property Value
| Type | Description |
|---|---|
| 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.
Declaration
public Quaternion Rotation { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.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.
Declaration
public Vector3 Scale { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
Size
The fixed size of the object.
Declaration
public Vector3 Size { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
SizeOfParent
The relative size of the object.
Declaration
public Vector3 SizeOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| UnityEngine.Vector3 |
SkipLayout
Skip layout for this object.
Declaration
public bool SkipLayout { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
Width
The fixed width of the object.
Declaration
public float Width { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
WidthOfParent
The relative width of the object.
Declaration
public float WidthOfParent { get; set; }
Property Value
| Type | Description |
|---|---|
| float |
WidthType
The width type of the object.
Declaration
public SizeType WidthType { get; set; }
Property Value
| Type | Description |
|---|---|
| SizeType |
Methods
Initialize()
Declaration
protected override void Initialize()
Overrides
ResetProperties()
Called when the component is destroyed to reset properties on the FlexalonNode.
Declaration
protected override void ResetProperties()
Overrides
UpdateProperties()
Called when the component is enabled to apply properties to the FlexalonNode.
Declaration
protected override void UpdateProperties()
Overrides
Upgrade(int)
Declaration
protected override void Upgrade(int fromVersion)
Parameters
| Type | Name | Description |
|---|---|---|
| int | fromVersion |