MCPcopy Create free account
hub / github.com/Redot-Engine/redot-engine / back

Method back

core/variant/array.cpp:358–361  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

356}
357
358Variant Array::back() const {
359 ERR_FAIL_COND_V_MSG(_p->array.is_empty(), Variant(), "Can't take value from empty array.");
360 return operator[](_p->array.size() - 1);
361}
362
363Variant Array::pick_random() const {
364 ERR_FAIL_COND_V_MSG(_p->array.is_empty(), Variant(), "Can't take value from empty array.");

Callers 15

create_shape_ownerMethod · 0.45
get_valid_node_idMethod · 0.45
_lines_edited_fromMethod · 0.45
create_shape_ownerMethod · 0.45
_notificationMethod · 0.45
_set_owner_nocheckMethod · 0.45
process_timersMethod · 0.45
process_tweensMethod · 0.45
remove_tweenMethod · 0.45
gui_find_controlMethod · 0.45
_blend_processMethod · 0.45

Calls 3

VariantClass · 0.70
sizeMethod · 0.65
is_emptyMethod · 0.45

Tested by 4

testFunction · 0.36
update_treeMethod · 0.36
compare_listsFunction · 0.36
validate_propertyFunction · 0.36