s&box docs

public sealed struct RangedFloat

A float between two values, which can be randomized or fixed.

Constructors

Showing 2 constructors

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]"`.

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 Vector2 RangedFloat.RangeValue { get; set; }

The range value. Setting this will convert us to a range value

Metadata

FieldValue
Namespaceglobal
Typeclass
AssemblySandbox.System
Doc IDT:RangedFloat

On this page