Live2D editor: v5.0.01
Unity editor: 2022.3.8f1
SDK version: 4.2
OS: Win 11When I have a script that changes one parameter, then reload the Unity editor, all the physics attached to that parameter stop working. The only way I found to fix it was by removing the script and reattaching it, but happens again after reloading.
While testing also noticed that some times one or more art meshs disappear after reloading multiple times (time stamp 01:30), and the only way to fix it was instantiating another prefab (not even reverting all the overrides fixes it)
I've uploaded a minimum project with a lot of tests I did
LINKand a video recording
HEREFor some reason on my project with my own model, I have a script that is almost the same as the script "GetInAwakeWithDefault", but this this bug doesn't occur, it only occurs when I try to reference my script and change the Value variable in another script, but everything else is the same.
How to reproduce:- Place the Mao sample prefab on the scene
- Create an script that is able to change a parameter
- Physics will work perfectly
- Reload Unity (close and open again)
- Physics won't work
Comments
Thank you for always using our products.
This is probably due to the order in which components are executed as set by Unity.
Cubism SDK for Unity controls the execution order of components.
However, user-created components are not controlled as they are.
Therefore, when re-importing, components are called after physics operations in Cubism SDK for Unity in the execution order, and the physics operations are likely to be overwritten.
Please refer to the following tutorial to control the execution order so that script processing is called before physics operations.
https://docs.live2d.com/en/cubism-sdk-tutorials/using-update-controller/
Best regards.
However I wonder why this problem only occurs on the editor, while running a build everything works fine, even without the update controller setup.