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

Function SetNodeFlipbookPlaybackRate

engine/gui/src/gui.cpp:3637–3647  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3635 }
3636
3637 void SetNodeFlipbookPlaybackRate(HScene scene, HNode node, float playback_rate)
3638 {
3639 InternalNode* n = GetNode(scene, node);
3640
3641 if (n->m_Node.m_FlipbookAnimHash) {
3642 Animation* anim = GetComponentAnimation(scene, node, &n->m_Node.m_FlipbookAnimPosition);
3643 if (anim) {
3644 anim->m_PlaybackRate = playback_rate;
3645 }
3646 }
3647 }
3648
3649 Result PlayNodeParticlefx(HScene scene, HNode node, dmParticle::EmitterStateChangedData* callbackdata)
3650 {

Callers 1

Calls 2

GetNodeFunction · 0.70
GetComponentAnimationFunction · 0.70

Tested by

no test coverage detected