Class FlexalonRandomModifier
The Flexalon Random Modifier component can be added to any layout to randomly modify the positions and rotations of the children.
Inheritance
Implements
Inherited Members
Syntax
[AddComponentMenu("Flexalon/Flexalon Random Modifier")]
[HelpURL("https://www.flexalon.com/docs/randomModifier")]
public class FlexalonRandomModifier : FlexalonComponent, FlexalonModifier
Properties
PositionMax
Maximum position value.
Declaration
public Vector3 PositionMax { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
PositionMaxX
Maximum X position value.
Declaration
public float PositionMaxX { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMaxY
Maximum Y position value.
Declaration
public float PositionMaxY { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMaxZ
Maximum Z position value.
Declaration
public float PositionMaxZ { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMin
Minimum position value.
Declaration
public Vector3 PositionMin { get; set; }
Property Value
Type | Description |
---|---|
UnityEngine.Vector3 |
PositionMinX
Minimum X position value.
Declaration
public float PositionMinX { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMinY
Minimum Y position value.
Declaration
public float PositionMinY { get; set; }
Property Value
Type | Description |
---|---|
float |
PositionMinZ
Minimum Z position value.
Declaration
public float PositionMinZ { get; set; }
Property Value
Type | Description |
---|---|
float |
RandomizePositionX
If true, the X position of each child will be randomized.
Declaration
public bool RandomizePositionX { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizePositionY
If true, the Y position of each child will be randomized.
Declaration
public bool RandomizePositionY { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizePositionZ
If true, the Z position of each child will be randomized.
Declaration
public bool RandomizePositionZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationX
If true, the X rotation of each child will be randomized.
Declaration
public bool RandomizeRotationX { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationY
If true, the Y rotation of each child will be randomized.
Declaration
public bool RandomizeRotationY { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomizeRotationZ
If true, the Z rotation of each child will be randomized.
Declaration
public bool RandomizeRotationZ { get; set; }
Property Value
Type | Description |
---|---|
bool |
RandomSeed
Seed value used to determine random values. This ensures results the remain consistent each time layout is computed.
Declaration
public int RandomSeed { get; set; }
Property Value
Type | Description |
---|---|
int |
RotationMaxX
Maximum X rotation value.
Declaration
public float RotationMaxX { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMaxY
Maximum Y rotation value.
Declaration
public float RotationMaxY { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMaxZ
Maximum Z rotation value.
Declaration
public float RotationMaxZ { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMinX
Minimum X rotation value.
Declaration
public float RotationMinX { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMinY
Minimum Y rotation value.
Declaration
public float RotationMinY { get; set; }
Property Value
Type | Description |
---|---|
float |
RotationMinZ
Minimum Z rotation value.
Declaration
public float RotationMinZ { get; set; }
Property Value
Type | Description |
---|---|
float |
Methods
PostArrange(FlexalonNode)
Declaration
public void PostArrange(FlexalonNode node)
Parameters
Type | Name | Description |
---|---|---|
FlexalonNode | node |
ResetProperties()
Declaration
protected override void ResetProperties()
Overrides
UpdateProperties()
Declaration
protected override void UpdateProperties()