Skip to reading
GDScript Programming & Godot

len()

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

Code example
len(var: Variant) -> int

Length/size of a supported String or container.

load()#

Code example
load(path: String) -> Resource

Load a Resource by a runtime path in the running Godot resource environment.

ord()#

Code example
ord(char: String) -> int

Convert between a Unicode code point and a character.

preload()#

Code example
preload(path: String) -> Resource

Prepare a Resource from a constant path while the script is loaded.

print_debug()#

Code example
print_debug(...) -> void

Inspect or print native debug stack/location information.

print_stack()#

Code example
print_stack() -> void

Inspect or print native debug stack/location information.

range()#

Code example
range(...) -> Array

Integer range for loops; stop is excluded and a negative step counts down.

type_exists()#

Code example
type_exists(type: StringName) -> bool

Check whether an exposed named type exists.

Page 304 of 378Permalink
Go to page