Skip to content
Version 2.11.0
↓ Get the launcher

ILua.TryReadGlobalBool method

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

public bool TryReadGlobalBool(string key, out bool value)
parameter description
key Global name (as written with rawset(_G, key, value)).
value The decoded boolean, or false on failure.