[About macOS Sequoia] (Updated October 22, 2024)
Live2D Cubism Editor 5.1.02 now supports macOS Sequoia.
Other Live2D Cubism products currently released are not guaranteed to work on macOS Sequoia.
Please refrain from upgrading macOS, as it may not operate properly.
Hi...
Is there any preload technique that I can use in Unity to preload Live2D character assets (textures, motions, etc)?
I have two Scenes: Menu Scene, and Game Scene; then 1 Live2D character Prefab.
I thought I can use this [
http://bit.ly/1LhAHkl]:
Eric5h5 said, "Put the desired textures on some objects that are visible to the camera for one frame (the first frame in the game), then destroy the objects. Cover the screen with a blank texture while doing this so it doesn't look ugly—the camera still sees the objects so they still get rendered."
So I tried to load a Live2D character prefab in Menu Scene, then deleted it after one frame. But when I tried to use the same character prefab in Game Scene , it seems it's not preloaded so I didn't get the desired result...
0 ·
Comments
Drawing of live2d are using DrawMeshNow (Unity API) .
live2d document - For the setting of the drawing mode
Preload might be difficult but there is one way .
There is a way to use the DontDestroyOnLoad .
http://docs.unity3d.com/ScriptReference/Object.DontDestroyOnLoad.html
For example, I used as follows .
It will call the Main scene from Sample scene .
It with the following script to GameObject, I was scene switched UGUI button press processing .
I was able to display Live2DModel in the Main Scene.
I was able to GameObject, could not Prefab.
Now I know the direction to improve the code.
Naotaro, thank you for this helpful answer.