Material Box

Material Box

WEB Design & Material Images

Godot - Shuffle array values

Godot

GDScript code example to shuffle array values.


Can shuffle order of array values using shuffle() in GDScript.

var array = ["apple", "lemon", "orange", "banana"]
array.shuffle()

print(array)
# ["banana", "orange", "apple", "lemon"]

Godot

TitleGodot - Shuffle array values

CategoryGodot

Created

Update

AuthorYousuke.U