Class FlexalonRandomLayout
Use a random layout to position, rotate, and size children randomly within bounds.
Inheritance
Implements
Inherited Members
Syntax
[AddComponentMenu("Flexalon/Flexalon Random Layout")]
[HelpURL("https://www.flexalon.com/docs/randomLayout")]
public class FlexalonRandomLayout : LayoutBase, Layout
Properties
DepthAlign
Depth alignment of all children within layout bounds.
Declaration
public Align DepthAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
HorizontalAlign
Horizontal alignment of all children within layout bounds.
Declaration
public Align HorizontalAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
PositionMax
Maximum position.
Declaration
public Vector3 PositionMax { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
PositionMaxX
Maximum X position.
Declaration
public float PositionMaxX { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMaxY
Maximum Y position.
Declaration
public float PositionMaxY { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMaxZ
Maximum Z position.
Declaration
public float PositionMaxZ { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMin
Minimum position.
Declaration
public Vector3 PositionMin { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
PositionMinX
Minimum X position.
Declaration
public float PositionMinX { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMinY
Minimum Y position.
Declaration
public float PositionMinY { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMinZ
Minimum Z position.
Declaration
public float PositionMinZ { get; set; }
Property Value
Type | Description |
---|---|
float |
RandomizePositionX
Randomizes the X position within bounds.
Declaration
public bool RandomizePositionX { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizePositionY
Randomizes the Y position within bounds.
Declaration
public bool RandomizePositionY { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizePositionZ
Randomizes the Z position within bounds.
Declaration
public bool RandomizePositionZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationX
Randomizes the X rotation within bounds.
Declaration
public bool RandomizeRotationX { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationY
Randomizes the Y rotation within bounds.
Declaration
public bool RandomizeRotationY { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationZ
Randomizes the Z rotation within bounds.
Declaration
public bool RandomizeRotationZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeSizeX
Randomizes the X size within bounds. You must set child size to "Fill" for this to have effect.
Declaration
public bool RandomizeSizeX { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeSizeY
Randomizes the Y size within bounds. You must set child size to "Fill" for this to have effect.
Declaration
public bool RandomizeSizeY { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeSizeZ
Randomizes the Z size within bounds. You must set child size to "Fill" for this to have effect.
Declaration
public bool RandomizeSizeZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomSeed
Seed value used to determine random values. This ensures results remain consistent each time layout is computed.
Declaration
public int RandomSeed { get; set; }
Property Value
Type | Description |
---|---|
int |
RotationMax
Maximum rotation.
Declaration
public Quaternion RotationMax { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
RotationMaxX
Maximum X rotation.
Declaration
public float RotationMaxX { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMaxY
Maximum Y rotation.
Declaration
public float RotationMaxY { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMaxZ
Maximum Z rotation.
Declaration
public float RotationMaxZ { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMin
Minimum rotation.
Declaration
public Quaternion RotationMin { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Quaternion |
RotationMinX
Minimum X rotation.
Declaration
public float RotationMinX { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMinY
Minimum Y rotation.
Declaration
public float RotationMinY { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMinZ
Minimum Z rotation.
Declaration
public float RotationMinZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMax
Maximum size.
Declaration
public Vector3 SizeMax { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
SizeMaxX
Maximum X size.
Declaration
public float SizeMaxX { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMaxY
Maximum Y size.
Declaration
public float SizeMaxY { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMaxZ
Maximum Z size.
Declaration
public float SizeMaxZ { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMin
Minimum size.
Declaration
public Vector3 SizeMin { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
SizeMinX
Minimum X size.
Declaration
public float SizeMinX { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMinY
Minimum Y size.
Declaration
public float SizeMinY { get; set; }
Property Value
Type | Description |
---|---|
float |
SizeMinZ
Minimum Z size.
Declaration
public float SizeMinZ { get; set; }
Property Value
Type | Description |
---|---|
float |
VerticalAlign
Vertical alignment of all children within layout bounds.
Declaration
public Align VerticalAlign { get; set; }
Property Value
Type | Description |
---|---|
Align |
Methods
Arrange(FlexalonNode, Vector3)
Position the children of node within the available bounds.
Declaration
public override void Arrange(FlexalonNode node, Vector3 layoutSize)
Parameters
Type | Name | Description |
---|---|---|
FlexalonNode | node | |
UnityEngine.Vector3 | layoutSize |
Overrides
Initialize()
Declaration
protected override void Initialize()
Overrides
Measure(FlexalonNode, Vector3, Vector3, Vector3)
Perform minimal work to determine what the size of node and available size for node's children.
Declaration
public override Bounds Measure(FlexalonNode node, Vector3 size, Vector3 min, Vector3 max)
Parameters
Type | Name | Description |
---|---|---|
FlexalonNode | node | |
UnityEngine.Vector3 | size | |
UnityEngine.Vector3 | min | |
UnityEngine.Vector3 | max |
Returns
Type | Description |
---|---|
UnityEngine.Bounds |