mirror of
https://github.com/godotengine/godot.git
synced 2025-02-17 22:43:01 +08:00
Document pick_random for empty arrays
This commit is contained in:
parent
a278c1b98a
commit
30d4d1c6d1
@ -462,7 +462,7 @@
|
||||
<method name="pick_random" qualifiers="const">
|
||||
<return type="Variant" />
|
||||
<description>
|
||||
Returns a random value from the target array.
|
||||
Returns a random value from the target array. Prints an error and returns [code]null[/code] if the array is empty.
|
||||
[codeblocks]
|
||||
[gdscript]
|
||||
var array: Array[int] = [1, 2, 3, 4]
|
||||
|
Loading…
Reference in New Issue
Block a user