[Notice of Holidays]
Please note that our staff will not be available from 2024/Dec/28 - 2025/Jan/5 JST.
The Live2D Creators Forum will remain open during the holidays.
Submissions that require a response will be answered after we reopen for business.
Please note that it will take longer than usual to respond to your request.
Dynamically Changing Model
Heya ^_^
I'm trying to have the model be change-able mid-game, through a script.
My current attempt is to have the script set the path in LAppModelProxy to the path of the new model.json file. This resulted in nothing happening >.<
I then tried to force the Visible variable, call Awake and OnRenderObject methods. These haven't accomplished anything =/
If I set the starting path to the model, it loads the model, but doesn't override it when I change the path and/or try these method calls.
Any help would be appreciated
0 ·
Comments
I'm using Unity (as this is the Unity board :P), I'm writing my scripts in C# and am using whatever SDK was current a month ago. >_<
Thanks
do you want to swap models or do you want to swap parts of a model in game?
My post was about swapping models mid-game (switching the model.json files). I got it to work, but only for files in the Unity Resource folder. And it looks like the FileManager, and many of the other classes, are designed to work that way. At this point, I'll probably just have to work within that restraint :x Not optimal, but I can live with it
Thanks for the reply ^^
Is there something I'm missing? Or would I have to rewrite how the Live2D classes access their files (which I'd much rather not do >_<) (I had tried to alter how the Live2D FileManager gathers its resources, but loading a 'TextAsset' proved too annoying )