Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Please limit one question/topic per post.
Please provide the following details depending on types of question

▼ For question regarding Editor, please provide:
- Live2D Software Version: (e.g. Cubism Editor 3.1.02, Euclid Editor 1.2.02)
- OS & Version: (e.g. Windows 10, macOS HighSierra)
- PC Model: (e.g. MacBookPro 2017)
- Graphics Specifications: (e.g. GeForce GTX 950M)
- Memory: (e.g. 8GB)
- Illustration Software used: (e.g. Photoshop, ClipStudio, SAI)
- Attach screenshot or capture video to show your problem:
---------------------------
▼ For question regarding SDK, please provide:
- For us to reproduce the issue you wish to inquire about, please provide either a minimum project file which has the issue. or specific instructions on how to reproduce the issue.
- Types and version of Cubism SDK you are using.
---------------------------
▼ For question regarding Cubism Software License,
For issues related to purchasing, your order, license key, and subscription, please contact us via contact form:
https://www.live2d.jp/eng/contact/

Model animates in Unity editor... but not in build or editor's full-screen mode?

Hello.
The SDK version I am using is CubismSdkForUnity-4-beta.2
I am using a script to update my model's parameters at runtime.
It appears to animate the model just fine when I play the project in the Unity editor. But then when I select the "Maximize On Play" button and play the project in the Unity editor, the model does not animate. It also will not animate when I build the project into an executable. It only animates in the Unity editor, and only when the Unity editor is not in "Maximize On Play" mode.



In order to display my model over everything else, I have it attached as a child to a blank (transparent) image that belongs to a canvas, which references the scene's main camera.


My script for manipulating the parameters has an implementation that looks like this (which is in the LateUpdate() function:



I wrote this with help from the instructions here: https://docs.live2d.com/cubism-sdk-tutorials/about-parameterupdating-of-model/#
This works, but only in the Unity Editor. If I build the project, or if I maximize the game preview in the Unity Editor, the script does not have any effect on the model's parameters.
If I print the parameter.Value to the Debug.Log(), I can see that it is still manipulating the parameter:


However, the model on the screen does not reflect these parameter changes, unless I run the game in the Unity Editor without setting the game preview to "Maximize On Play."
Because my script works to update the parameters in the Unity Editor, I wonder if I am missing something that makes it stop working when I "Maximize On Play" or build the project.
I created my model in Live2D Cubism Editor 4.0, and I imported it into my Unity project by following the instructions here: https://docs.live2d.com/cubism-sdk-tutorials/getting-started/#

Comments

Sign In or Register to comment.