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

Method front

core/variant/array.cpp:353–356  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

351}
352
353Variant Array::front() const {
354 ERR_FAIL_COND_V_MSG(_p->array.is_empty(), Variant(), "Can't take value from empty array.");
355 return operator[](0);
356}
357
358Variant Array::back() const {
359 ERR_FAIL_COND_V_MSG(_p->array.is_empty(), Variant(), "Can't take value from empty array.");

Callers 15

SceneDebuggerTreeMethod · 0.45
set_sprite_framesMethod · 0.45
remove_varyingMethod · 0.45
remove_nodeMethod · 0.45
disconnect_nodesMethod · 0.45
set_modeMethod · 0.45
_update_shaderMethod · 0.45
_get_icon_listMethod · 0.45
_get_icon_type_listMethod · 0.45
_get_stylebox_listMethod · 0.45

Calls 2

VariantClass · 0.70
is_emptyMethod · 0.45

Tested by 11

handle_cmdlineMethod · 0.36
execute_test_codeMethod · 0.36
add_stack_variableMethod · 0.36
update_treeMethod · 0.36
_property_pinnedMethod · 0.36
updateMethod · 0.36
compare_listsFunction · 0.36
swap_randomFunction · 0.36
validate_propertyFunction · 0.36
add_exposed_classesFunction · 0.36