ParticleFloatclass

Represents a floating-point value that can change over time with support for various evaluation modes.

objectParticleFloat
Namespace
Sandbox
Assembly
Sandbox.Engine
Declaration
public sealed struct Sandbox.ParticleFloat

Constructors2

Showing 2 constructors

Methods6

Showing 6 methods

public float GetValue()PUBLICOBSOLETE

This is only here to remain "compatible" with RangedFloat

Obsolete: This API member is obsolete.

Returns:float

public bool IsNearlyZero()PUBLIC

Checks if the value is nearly zero.

Returns:bool

public static override object JsonRead(System.Text.Json.Utf8JsonReader reader, System.Type typeToConvert)PUBLICSTATICOVERRIDE

Reads a ParticleFloat instance from JSON, refactored for modularity.

ParameterTypeDescription
readerUtf8JsonReader
typeToConvertType
Returns:object

public static override void JsonWrite(object value, System.Text.Json.Utf8JsonWriter writer)PUBLICSTATICOVERRIDE

Writes a ParticleFloat instance to JSON, refactored for modularity.

ParameterTypeDescription
valueobject
writerUtf8JsonWriter
Returns:void

Properties8

Showing 8 properties

public float Sandbox.ParticleFloat.ConstantA { get; set; }PUBLICGETSET

Returns:float

public float Sandbox.ParticleFloat.ConstantB { get; set; }PUBLICGETSET

Returns:float

public float Sandbox.ParticleFloat.ConstantValue { get; set; }PUBLICGETSET

Returns:float

On this page