MCPcopy Create free account
hub / github.com/defold/defold / GetElementCount

Function GetElementCount

engine/gameobject/src/gameobject/comp_anim.cpp:523–541  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

521 }
522
523 static uint32_t GetElementCount(PropertyType type, dmhash_t* element_ids)
524 {
525 switch (type)
526 {
527 case PROPERTY_TYPE_NUMBER:
528 return 1;
529 case PROPERTY_TYPE_VECTOR3:
530 {
531 if (element_ids[2] == 0)
532 return 2;
533 return 3;
534 }
535 case PROPERTY_TYPE_VECTOR4:
536 case PROPERTY_TYPE_QUAT:
537 return 4;
538 default:
539 return 0;
540 }
541 }
542
543 PropertyResult Animate(HCollection collection, HInstance instance, dmhash_t component_id,
544 dmhash_t property_id,

Callers 2

AnimateFunction · 0.70
CancelAnimationsFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected