Skip to content
Version 2.11.0
↓ Get the launcher

ILua.TryReadGlobalNumber method

Reads global key as a Lua number via the tolua# stack API. Returns false (with value = 0) when the global is absent, nil, or not a number.

public bool TryReadGlobalNumber(string key, out double value)
parameter description
key Global name.
value The decoded number, or 0 on failure.