struct
ParticleFloat
public sealed struct ParticleFloat Represents a floating-point value that can change over time with support for various evaluation modes.
Constructors
ParticleFloat() ParticleFloat(Single a, Single b) Properties
| Name | Type | Description |
|---|---|---|
Type | ValueType | |
Evaluation | EvaluationType | |
CurveA | Curve | |
CurveB | Curve | |
ConstantValue | Single | |
ConstantA | Single | |
ConstantB | Single | |
CurveRange | CurveRange |
Methods
Single Evaluate(Single delta, Single randomFixed) Evaluates the value based on the given delta and random seed, optimized for performance.
Single Evaluate(IDynamicFloatContext context, Int32 seed, Int32 line = 0) Evaluates the value using a dynamic context and seed, optimized for clarity and functionality.
Boolean IsNearlyZero() Checks if the value is nearly zero.
static override Object JsonRead(Utf8JsonReader reader, Type typeToConvert) Reads a ParticleFloat instance from JSON, refactored for modularity.
static override Void JsonWrite(Object value, Utf8JsonWriter writer) Writes a ParticleFloat instance to JSON, refactored for modularity.
Single GetValue() This is only here to remain "compatible" with RangedFloat
Fields
| Name | Type | Description |
|---|---|---|
Constants | Vector4 |