Cubism SDK‎ > ‎Live2D Library‎ > ‎

Automatic Delete of a Motion【C++】

You can specify a flag to delete automatically the motion instance when the motion starts or not.
If you make this flag "true", Live2D will delete the instance from the memory automatically when the motion finishes.

For a normal use, you can execute it by setting OFF of automatic delete for the motion to play repeatedly like idling, and by setting ON of automatic delete for the motion not to be used after playing once (or to be reloaded).

If any error occurs during playing a motion, it may be improved by setting OFF of the automatic delete as the motion will not be played after executing automatic delete.
In this case, you need to pay attention for the memory leak of the motion data.

Refer to the reference for its usage.









Comments