Back to API Reference
Struct

ParameterReader

sealed

Zero-allocation tokenizer for comma-separated modifier parameters. Eliminates manual IndexOf/Slice/Trim boilerplate in modifier parsers.

Example

csharp

Nested Types

public bool IsEmpty{ get }

True if there are no more tokens to read.

[ctor]public ParameterReader()
[ctor]public ParameterReader()
public static bool ParseFloat()

Parses a span as float using InvariantCulture. For pre-extracted tokens where Next() was already called.

public bool NextFloat()

Reads the next token as a float. Returns false if missing or unparseable.

public bool NextInt()

Reads the next token as an int. Returns false if missing or unparseable.

public bool NextColor()

Reads the next token as a Color32 via ColorParsing. Returns false if missing or unparseable.

public bool NextUnitFloat()

Reads the next token as a float with optional unit suffix. Recognizes: 24 (absolute), 150%, 0.5em, +10/-5 (delta). Always uses InvariantCulture.

public bool NextString()

Reads the next token as a string (allocates). Returns false if missing or empty.