Skip to reading
GDScript Programming & Godot

weakref()

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
weakref(obj: Variant) -> Variant

Hold a weak reference that does not keep the Object alive.

wrap()#

Code example
wrap(value: Variant, min: Variant, max: Variant) -> Variant

Wrap a value into a repeating interval.

wrapf()#

Code example
wrapf(value: float, min: float, max: float) -> float

Wrap a value into a repeating interval.

wrapi()#

Code example
wrapi(value: int, min: int, max: int) -> int

Wrap a value into a repeating interval.

Page 319 of 378Permalink
Go to page