1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
|
<?xml version="1.0" encoding="UTF-8" ?>
<class name="@GDScript" category="Core" version="3.0.alpha.custom_build">
<brief_description>
Built-in GDScript functions.
</brief_description>
<description>
This contains the list of built-in gdscript functions. Mostly math functions and other utilities. Everything else is expanded by objects.
</description>
<tutorials>
</tutorials>
<demos>
</demos>
<methods>
<method name="Color8">
<return type="Color">
</return>
<argument index="0" name="r8" type="int">
</argument>
<argument index="1" name="g8" type="int">
</argument>
<argument index="2" name="b8" type="int">
</argument>
<argument index="3" name="a8" type="int">
</argument>
<description>
Returns a 32 bit color with red, green, blue and alpha channels. Each channel has 8bits of information ranging from 0 to 255.
'r8' red channel
'g8' green channel
'b8' blue channel
'a8' alpha channel
[codeblock]
red = Color8(255, 0, 0)
[/codeblock]
</description>
</method>
<method name="ColorN">
<return type="Color">
</return>
<argument index="0" name="name" type="String">
</argument>
<argument index="1" name="alpha" type="float">
</argument>
<description>
Returns color 'name' with alpha ranging from 0 to 1. Note: 'name' is defined in color_names.inc.
[codeblock]
red = ColorN('red')
[/codeblock]
</description>
</method>
<method name="abs">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the absolute value of parameter 's' (i.e. unsigned value, works for integer and float).
[codeblock]
# a is 1
a = abs(-1)
[/codeblock]
</description>
</method>
<method name="acos">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the arc cosine of 's' in radians. Use to get the angle of cosine 's'.
[codeblock]
# c is 0.523599 or 30 degrees if converted with rad2deg(s)
c = acos(0.866025)
[/codeblock]
</description>
</method>
<method name="asin">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the arc sine of 's' in radians. Use to get the angle of sine 's'.
[codeblock]
# s is 0.523599 or 30 degrees if converted with rad2deg(s)
s = asin(0.5)
[/codeblock]
</description>
</method>
<method name="assert">
<return type="void">
</return>
<argument index="0" name="condition" type="bool">
</argument>
<description>
</description>
</method>
<method name="atan">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
</description>
</method>
<method name="atan2">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<description>
Returns the arc tangent of y/x in radians. Use to get the angle of tangent y/x. To compute the value, the function takes into account the sign of both arguments in order to determine the quadrant.
[codeblock]
# a is 3.141593
a = atan(0,-1)
[/codeblock]
</description>
</method>
<method name="bytes2var">
<return type="Variant">
</return>
<argument index="0" name="bytes" type="PoolByteArray">
</argument>
<description>
Decode a byte array back to a value.
</description>
</method>
<method name="ceil">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Rounds 's' upward, returning the smallest integral value that is not less than 's'.
[codeblock]
# i is 2
i = ceil(1.45)
# i is 2
i = ceil(1.001)
[/codeblock]
</description>
</method>
<method name="char">
<return type="String">
</return>
<argument index="0" name="ascii" type="int">
</argument>
<description>
Returns a character as String of the given ASCII code.
[codeblock]
# a is 'A'
a = char(65)
# a is 'a'
a = char(65+32)
[/codeblock]
</description>
</method>
<method name="clamp">
<return type="float">
</return>
<argument index="0" name="val" type="float">
</argument>
<argument index="1" name="min" type="float">
</argument>
<argument index="2" name="max" type="float">
</argument>
<description>
Clamp 'val' and return a value not less than 'min' and not more than 'max'.
[codeblock]
speed = 1000
# a is 20
a = clamp(speed, 1, 20)
speed = -10
# a is 1
a = clamp(speed, 1, 20)
[/codeblock]
</description>
</method>
<method name="convert">
<return type="Object">
</return>
<argument index="0" name="what" type="Variant">
</argument>
<argument index="1" name="type" type="int">
</argument>
<description>
Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in [@Global Scope].
[codeblock]
a = Vector2(1, 0)
# prints 1
print(a.length())
a = convert(a, TYPE_STRING)
# prints 6
# (1, 0) is 6 characters
print(a.length())
[/codeblock]
</description>
</method>
<method name="cos">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the cosine of angle 's' in radians.
[codeblock]
# prints 1 and -1
print(cos(PI*2))
print(cos(PI))
[/codeblock]
</description>
</method>
<method name="cosh">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the hyperbolic cosine of 's' in radians.
[codeblock]
# prints 1.543081
print(cosh(1))
[/codeblock]
</description>
</method>
<method name="db2linear">
<return type="float">
</return>
<argument index="0" name="db" type="float">
</argument>
<description>
Convert from decibels to linear energy (audio).
</description>
</method>
<method name="decimals">
<return type="float">
</return>
<argument index="0" name="step" type="float">
</argument>
<description>
Returns the number of digit places after the decimal that the first non-zero digit occurs.
[codeblock]
# n is 2
n = decimals(0.035)
[/codeblock]
</description>
</method>
<method name="dectime">
<return type="float">
</return>
<argument index="0" name="value" type="float">
</argument>
<argument index="1" name="amount" type="float">
</argument>
<argument index="2" name="step" type="float">
</argument>
<description>
Returns the result of 'value' decreased by 'step' * 'amount'.
[codeblock]
# a = 59
a = dectime(60, 10, 0.1))
[/codeblock]
</description>
</method>
<method name="deg2rad">
<return type="float">
</return>
<argument index="0" name="deg" type="float">
</argument>
<description>
Returns degrees converted to radians.
[codeblock]
# r is 3.141593
r = deg2rad(180)
[/codeblock]
</description>
</method>
<method name="dict2inst">
<return type="Object">
</return>
<argument index="0" name="dict" type="Dictionary">
</argument>
<description>
Convert a previously converted instance to dictionary back into an instance. Useful for deserializing.
</description>
</method>
<method name="ease">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<argument index="1" name="curve" type="float">
</argument>
<description>
Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in.
</description>
</method>
<method name="exp">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns [b]e[/b] raised to the power of 's'. [b]e[/b] sometimes called "Euler's number" is a mathematical constant whose value is approximately 2.71828.
</description>
</method>
<method name="floor">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the largest integer value (rounded down) that is less than or equal to 's'.
</description>
</method>
<method name="fmod">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<description>
Returns the floating-point remainder of x/y (rounded towards zero):
[codeblock]
fmod = x - tquot * y
[/codeblock]
Where tquot is the truncated (i.e., rounded towards zero) result of: x/y.
</description>
</method>
<method name="fposmod">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<description>
</description>
</method>
<method name="funcref">
<return type="Object">
</return>
<argument index="0" name="instance" type="Object">
</argument>
<argument index="1" name="funcname" type="String">
</argument>
<description>
</description>
</method>
<method name="hash">
<return type="int">
</return>
<argument index="0" name="var" type="Variant">
</argument>
<description>
Returns the integer hash of the variable passed.
[codeblock]
# print 177670
print(hash("a"))
[/codeblock]
</description>
</method>
<method name="inst2dict">
<return type="Dictionary">
</return>
<argument index="0" name="inst" type="Object">
</argument>
<description>
Returns the passed instance converted a dictionary (useful for serializing).
[codeblock]
var foo = "bar"
func _ready():
var d = inst2dict(self)
print(d.keys())
print(d.values())
[/codeblock]
Prints out:
[codeblock]
[@subpath, @path, foo]
[, res://test.gd, bar]
[/codeblock]
</description>
</method>
<method name="instance_from_id">
<return type="Object">
</return>
<argument index="0" name="instance_id" type="int">
</argument>
<description>
Returns the Object that corresponds to 'instance_id'. All Objects have a unique instance ID.
[codeblock]
var foo = "bar"
func _ready():
var id = get_instance_id()
var inst = instance_from_id(id)
print(inst.foo)
[/codeblock]
Prints "bar"
</description>
</method>
<method name="inverse_lerp">
<return type="float">
</return>
<argument index="0" name="from" type="float">
</argument>
<argument index="1" name="to" type="float">
</argument>
<argument index="2" name="value" type="float">
</argument>
<description>
Returns a normalized value considering the given range.
[codeblock]
inverse_lerp(3, 5, 4) # return 0.5
[/codeblock]
</description>
</method>
<method name="is_inf">
<return type="bool">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns True/False whether 's' is an infinity value (either positive infinity or negative infinity).
</description>
</method>
<method name="is_nan">
<return type="bool">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns True/False whether 's' is a NaN (Not-A-Number) value.
</description>
</method>
<method name="len">
<return type="int">
</return>
<argument index="0" name="var" type="Variant">
</argument>
<description>
Returns length of Variant 'var'. Length is the character count of String, element count of Array, size of Dictionary, etc. Note: Generates a fatal error if Variant can not provide a length.
[codeblock]
a = [1, 2, 3, 4]
print(len(a))
[/codeblock]
Prints 4
</description>
</method>
<method name="lerp">
<return type="float">
</return>
<argument index="0" name="from" type="float">
</argument>
<argument index="1" name="to" type="float">
</argument>
<argument index="2" name="weight" type="float">
</argument>
<description>
Linear interpolates between two values by a normalized value.
</description>
</method>
<method name="linear2db">
<return type="float">
</return>
<argument index="0" name="nrg" type="float">
</argument>
<description>
Convert from linear energy to decibels (audio).
</description>
</method>
<method name="load">
<return type="Object">
</return>
<argument index="0" name="path" type="String">
</argument>
<description>
Load a resource from the filesystem located at 'path'. Note: resource paths can be obtained by right clicking on a resource in the Assets Pannel and choosing "Copy Path".
[codeblock]
# load a scene called main located in the root of the project directory
var main = load("res://main.tscn")
[/codeblock]
</description>
</method>
<method name="log">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Natural logarithm. The amount of time needed to reach a certain level of continuous growth. Note: This is not the same as the log funcation on your calculator which is a base 10 logarithm.
[codeblock]
# a is 2.302585
a = log(10)
[/codeblock]
</description>
</method>
<method name="max">
<return type="float">
</return>
<argument index="0" name="a" type="float">
</argument>
<argument index="1" name="b" type="float">
</argument>
<description>
Returns the maximum of two values.
[codeblock]
# a is 2
a = max(1,2)
# a is -3.99
a = max(-3.99, -4)
[/codeblock]
</description>
</method>
<method name="min">
<return type="float">
</return>
<argument index="0" name="a" type="float">
</argument>
<argument index="1" name="b" type="float">
</argument>
<description>
Returns the minimum of two values.
[codeblock]
# a is 1
a = min(1,2)
# a is -4
a = min(-3.99, -4)
[/codeblock]
</description>
</method>
<method name="nearest_po2">
<return type="int">
</return>
<argument index="0" name="val" type="int">
</argument>
<description>
Returns the nearest larger power of 2 for an integer.
[codeblock]
# a is 4
a = nearest_po2(3)
# a is 4
a = nearest_po2(4)
# a is 8
a = nearest_po2(5)
[/codeblock]
</description>
</method>
<method name="parse_json">
<return type="Variant">
</return>
<argument index="0" name="json" type="String">
</argument>
<description>
Parse JSON text to a Variant (use [method typeof] to check if it is what you expect).
Be aware that the JSON specification does not define integer or float types, but only a number type. Therefore, parsing a JSON text will convert every numerical values to [float] types.
[codeblock]
p = parse_json('["a", "b", "c"]')
if typeof(p) == TYPE_ARRAY:
print(p[0])
else:
print("unexpected results")
[/codeblock]
</description>
</method>
<method name="pow">
<return type="float">
</return>
<argument index="0" name="x" type="float">
</argument>
<argument index="1" name="y" type="float">
</argument>
<description>
Returns the result of 'x' raised to the power of 'y'.
[codeblock]
# a is 32
a = pow(2,5)
[/codeblock]
</description>
</method>
<method name="preload">
<return type="Resource">
</return>
<argument index="0" name="path" type="String">
</argument>
<description>
Returns a resource from the filesystem that is loaded during script parsing. Note: resource paths can be obtained by right clicking on a resource in the Assets Pannel and choosing "Copy Path".
[codeblock]
# load a scene called main located in the root of the project directory
var main = preload("res://main.tscn")
</description>
</method>
<method name="print" qualifiers="vararg">
<return type="void">
</return>
<description>
Converts one or more arguments to strings in the best way possible and prints them to the console.
[codeblock]
a = [1,2,3]
print("a","b",a)
[/codeblock]
Prints ab[1, 2, 3]
</description>
</method>
<method name="print_stack">
<return type="void">
</return>
<description>
Print a stack track at code location, only works when running with debugger turned on.
</description>
</method>
<method name="printerr" qualifiers="vararg">
<return type="void">
</return>
<description>
Print one or more arguments to strings in the best way possible to standard error line.
</description>
</method>
<method name="printraw" qualifiers="vararg">
<return type="void">
</return>
<description>
Print one or more arguments to strings in the best way possible to console. No newline is added at the end.
</description>
</method>
<method name="prints" qualifiers="vararg">
<return type="void">
</return>
<description>
Print one or more arguments to the console with a space between each argument.
</description>
</method>
<method name="printt" qualifiers="vararg">
<return type="void">
</return>
<description>
Print one or more arguments to the console with a tab between each argument.
</description>
</method>
<method name="rad2deg">
<return type="float">
</return>
<argument index="0" name="rad" type="float">
</argument>
<description>
Convert from radians to degrees.
</description>
</method>
<method name="rand_range">
<return type="float">
</return>
<argument index="0" name="from" type="float">
</argument>
<argument index="1" name="to" type="float">
</argument>
<description>
Random range, any floating point value between 'from' and 'to'.
</description>
</method>
<method name="rand_seed">
<return type="Array">
</return>
<argument index="0" name="seed" type="int">
</argument>
<description>
Random from seed: pass a seed, and an array with both number and new seed is returned. "Seed" here refers to the internal state of the pseudo random number generator. The internal state of the current implementation is 64 bits.
</description>
</method>
<method name="randf">
<return type="float">
</return>
<description>
Return a random floating point value between 0 and 1.
</description>
</method>
<method name="randi">
<return type="int">
</return>
<description>
Return a random 32 bits integer value. To obtain a random value between 0 to N (where N is smaller than 2^32 - 1), you can use remainder. For example, to get a random integer between 0 and 19 inclusive, you can use randi() % 20.
</description>
</method>
<method name="randomize">
<return type="void">
</return>
<description>
Randomize the seed (or the internal state) of the random number generator. Current implementation reseeds using a number based on time.
</description>
</method>
<method name="range" qualifiers="vararg">
<return type="Array">
</return>
<description>
Return an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial, final-1, increment).
</description>
</method>
<method name="range_lerp">
<return type="float">
</return>
<argument index="0" name="value" type="float">
</argument>
<argument index="1" name="istart" type="float">
</argument>
<argument index="2" name="istop" type="float">
</argument>
<argument index="3" name="ostart" type="float">
</argument>
<argument index="4" name="ostop" type="float">
</argument>
<description>
Maps a value from range [istart, istop] to [ostart, ostop].
[codeblock]
range_lerp(75, 0, 100, -1, 1) # returns 0.5
[/codeblock]
</description>
</method>
<method name="round">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the integral value that is nearest to s, with halfway cases rounded away from zero.
</description>
</method>
<method name="seed">
<return type="void">
</return>
<argument index="0" name="seed" type="int">
</argument>
<description>
Set seed for the random number generator.
</description>
</method>
<method name="sign">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Return sign (-1 or +1).
</description>
</method>
<method name="sin">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the sine of an angle of s radians.
</description>
</method>
<method name="sinh">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the hyperbolic sine of s.
</description>
</method>
<method name="sqrt">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the square root of s.
</description>
</method>
<method name="stepify">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<argument index="1" name="step" type="float">
</argument>
<description>
Snap float value to a given step.
</description>
</method>
<method name="str" qualifiers="vararg">
<return type="String">
</return>
<description>
Convert one or more arguments to string in the best way possible.
</description>
</method>
<method name="str2var">
<return type="Variant">
</return>
<argument index="0" name="string" type="String">
</argument>
<description>
Convert a formatted string that was returned by [method var2str] to the original value.
</description>
</method>
<method name="tan">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the tangent of an angle of s radians.
</description>
</method>
<method name="tanh">
<return type="float">
</return>
<argument index="0" name="s" type="float">
</argument>
<description>
Returns the hyperbolic tangent of s.
</description>
</method>
<method name="to_json">
<return type="String">
</return>
<argument index="0" name="var" type="Variant">
</argument>
<description>
Convert a Variant to json text.
</description>
</method>
<method name="type_exists">
<return type="bool">
</return>
<argument index="0" name="type" type="String">
</argument>
<description>
Returns whether the given class is exist in [ClassDB].
[codeblock]
type_exists("Sprite") # returns true
type_exists("Variant") # returns false
[/codeblock]
</description>
</method>
<method name="typeof">
<return type="int">
</return>
<argument index="0" name="what" type="Variant">
</argument>
<description>
Return the internal type of the given Variant object, using the TYPE_* enum in [@Global Scope].
</description>
</method>
<method name="validate_json">
<return type="String">
</return>
<argument index="0" name="json" type="String">
</argument>
<description>
This method is used to validate the structure and data types of a piece of JSON, similar to XML Schema for XML.
</description>
</method>
<method name="var2bytes">
<return type="PoolByteArray">
</return>
<argument index="0" name="var" type="Variant">
</argument>
<description>
Encode a variable value to a byte array.
</description>
</method>
<method name="var2str">
<return type="String">
</return>
<argument index="0" name="var" type="Variant">
</argument>
<description>
Convert a value to a formatted string that can later be parsed using [method str2var].
</description>
</method>
<method name="weakref">
<return type="Object">
</return>
<argument index="0" name="obj" type="Object">
</argument>
<description>
Return a weak reference to an object.
A weak reference to an object is not enough to keep the object alive: when the only remaining references to a referent are weak references, garbage collection is free to destroy the referent and reuse its memory for something else. However, until the object is actually destroyed the weak reference may return the object even if there are no strong references to it.
</description>
</method>
<method name="yield">
<return type="GDFunctionState">
</return>
<argument index="0" name="object" type="Object">
</argument>
<argument index="1" name="signal" type="String">
</argument>
<description>
Stop the function execution and return the current state. Call [method GDFunctionState.resume] on the state to resume execution. This invalidates the state.
Returns anything that was passed to the resume function call. If passed an object and a signal, the execution is resumed when the object's signal is emitted.
</description>
</method>
</methods>
<constants>
<constant name="PI" value="3.141593" enum="">
Constant that represents how many times the diameter of a circumference fits around its perimeter.
</constant>
<constant name="INF" value="inf" enum="">
A positive infinity. (For negative infinity, use -INF).
</constant>
<constant name="NAN" value="-nan(ind)" enum="">
Macro constant that expands to an expression of type float that represents a NaN.
The NaN values are used to identify undefined or non-representable values for floating-point elements, such as the square root of negative numbers or the result of 0/0.
</constant>
</constants>
</class>
|