API Referenceglobal
public sealed struct RangedFloat
A float between two values, which can be randomized or fixed.
Constructors
Showing 2 constructors
No results match this filter.
Methods
Showing 3 methods
public void Deconstruct(float min, float max)
public float GetValue()
Returns the final value of this ranged float, randomizing between min and max values.
public static RangedFloat Parse(string str)
Parse a ranged float from a string. Format is `"min[ max]"`.
No results match this filter.
Properties
Showing 5 properties
public float RangedFloat.FixedValue { get; set; }
The fixed value. Setting this will convert us to a fixed value
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`.
public float RangedFloat.Min { get; set; }
The minimum value of the float range.
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.
Metadata
| Field | Value |
|---|---|
| Namespace | global |
| Type | class |
| Assembly | Sandbox.System |
| Doc ID | T:RangedFloat |