Skip to reading
GDScript Programming & Godot

GDScript-specific globals

Edition 0.86.4.1 HF1

0.86.4.1 Hotfix 1 edition. Earlier lessons and screenshots retain their original version context; revised references and supplements describe the newer behavior.

Download PDFView PDF page
On this page

Earlier edition reference / Current 0.86.4.0 property paths > p. 350

Color8()#

Code example
Color8(r8: int, g8: int, b8: int, a8: int = 255) -> Color

Construct a Color from 8-bit channel values.

assert()#

Code example
assert(condition: bool, message: String = "") -> void

Debug assertion; do not use as release-build input validation.

char()#

Code example
char(code: int) -> String

Convert between a Unicode code point and a character.

convert()#

Code example
convert(what: Variant, type: int) -> Variant

Compatibility type conversion. Prefer current type_convert/constructors where appropriate.

dict_to_inst()#

Code example
dict_to_inst(dictionary: Dictionary) -> Object

Compatibility object/dictionary conversion; use an explicit data format for portable game state.

get_stack()#

Code example
get_stack() -> Array

Inspect or print native debug stack/location information.

inst_to_dict()#

Code example
inst_to_dict(instance: Object) -> Dictionary

Compatibility object/dictionary conversion; use an explicit data format for portable game state.

is_instance_of()#

Code example
is_instance_of(value: Variant, type: Variant) -> bool

Test a value against a supplied type/class.

Page 303 of 378Permalink
Go to page