Cubism SDK‎ > ‎Live2D Library‎ > ‎

Initialization and Exit

Initialization

Invoke the init function of Live2D class.
Remember to invoke only once before using Live2D with an application.
If you do not invoke it at all or invoke it repeatedly, the operation may become unstable.
However, you can invoke it again after reading the dispose function described later.
Live2D::init();

The version information of Live2D is displayed as follows as a standard output file when initializing.

Live2D version 1.0.00 for Platform 


Exit

If you invoke the dispose function, all the resources which is secured by Live2D are released.
Remember not to invoke it before invoking init.
You basically invoke it when you exit the application.
In exceptional case, if there is very little memory and you want to separate the library completely when it is not needed, you can invoke this function to release the resources and invoke it again when you use it next.
Live2D::dispose();



Comments