API Referenceglobal
RangedFloatclass
A float between two values, which can be randomized or fixed.
object→RangedFloat
Constructors2
Showing 2 constructors
No results match this filter.
Methods3
Showing 3 methods
public void Deconstruct(float min, float max)
| Parameter | Type | Description |
|---|---|---|
| min | float | — |
| max | float | — |
Returns:
void—public float GetValue()
Returns the final value of this ranged float, randomizing between min and max values.
Returns:
float—public static RangedFloat Parse(string str)
Parse a ranged float from a string. Format is `"min[ max]"`.
| Parameter | Type | Description |
|---|---|---|
| str | string | — |
No results match this filter.
Properties5
Showing 5 properties
public float RangedFloat.FixedValue { get; set; }
The fixed value. Setting this will convert us to a fixed value
Returns:
float—public float RangedFloat.Max { get; set; }
The maximum value of the float range. For `RangedFloat.RangeType.Fixed`, this will be the same as `RangedFloat.Min`.
Returns:
float—public float RangedFloat.Min { get; set; }
The minimum value of the float range.
Returns:
float—public RangedFloat.RangeType RangedFloat.Range { get; set; }
Range type of this float.
public Vector2 RangedFloat.RangeValue { get; set; }
The range value. Setting this will convert us to a range value
No results match this filter.