ultralight-godot SHOWCASEshabbywu/ultralight-godot

API / CLASS REFERENCE

UltralightResult

Inherits: RefCounted

Explicit success value or structured failure.

Inspect ok before reading value or error. Successful null has a Nil value; JavaScript undefined uses UltralightUndefined. Errors are not printed implicitly by the new evaluation APIs.

Properties

MemberTypeDefault
okbool—
valueVariant—
errorUltralightError—

Methods

okbool

Whether this result is successful.

Default: — · Accessors: is_ok() · Read-only

valueVariant

Converted success value. Nil is a valid successful null.

Default: — · Accessors: get_value() · Read-only

errorUltralightError

Structured failure when ok is false; null on success.

Default: — · Accessors: get_error() · Read-only

is_ok

is_ok() → bool const

Return ok.

get_value

get_value() → Variant const

Return value.

get_error

get_error() → UltralightError const

Return error.

View class documentation source ↗

Godot screenshot · Press Esc to close Open original image ↗