Axmol Engine 2.4.0-258ceca
Loading...
Searching...
No Matches
ActionTweenDelegate Class Referenceabstract

The delegate class for ActionTween. More...

#include <ActionTween.h>

Public Member Functions

virtual ~ActionTweenDelegate ()
 @js NA @lua NA
 
virtual void updateTweenAction (float value, std::string_view key)=0
 The callback function when ActionTween is running.
 

Detailed Description

The delegate class for ActionTween.

If you want to use ActionTween on a node. You should implement the node follow these steps:

  1. The node should be inherit from ActionTweenDelegate.
  2. Override the virtual method updateTweenAction in the node.

Then once you running ActionTween on the node, the method updateTweenAction will be invoked.

Member Function Documentation

◆ updateTweenAction()

virtual void updateTweenAction ( float value,
std::string_view key )
pure virtual

The callback function when ActionTween is running.

Parameters
valueThe new value of the specified key.
keyThe key of property which should be updated.

The documentation for this class was generated from the following file: