Hi
I'm running into an issue when changing scenes with animated portraits
When i change scenes by sequencer command while continuing the conversation into the other scene, the animator for the character cant be found after i advance a node
Ive tried having the dialogue actor component be DoNotDestroy so it would be the same referenced object no matter what scene but this has failed to work also, before this i had a object where i stored all my dialogue actors in each scene.
Animated portraits not working between scenes on the VN novel framework
Re: Animated portraits not working between scenes on the VN novel framework
Hi,
Don't Destroy On Load should have worked for that. What error message do you see?
Don't Destroy On Load should have worked for that. What error message do you see?
Re: Animated portraits not working between scenes on the VN novel framework
Animator is not playing an AnimatorController
UnityEngine.StackTraceUtility:ExtractStackTrace ()
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:97)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
&
Animator is not playing an AnimatorController
UnityEngine.Animator:GetCurrentAnimatorStateInfo (int)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:107)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
it might also be worth noting i got over 800 of these warning messages
UnityEngine.StackTraceUtility:ExtractStackTrace ()
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:97)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
&
Animator is not playing an AnimatorController
UnityEngine.Animator:GetCurrentAnimatorStateInfo (int)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait:CheckIsInState (UnityEngine.Animator,string,UnityEngine.AnimatorStateInfo&) (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:107)
PixelCrushers.DialogueSystem.SequencerCommands.SequencerCommandAnimatorPlayWait/<MonitorState>d__2:MoveNext () (at Assets/Plugins/Pixel Crushers/Dialogue System/Scripts/MVC/Sequencer/Commands/SequencerCommandAnimatorPlayWait.cs:73)
UnityEngine.SetupCoroutine:InvokeMoveNext (System.Collections.IEnumerator,intptr)
it might also be worth noting i got over 800 of these warning messages
Re: Animated portraits not working between scenes on the VN novel framework
Is it definitely on the animated portrait image? In other words, you're not using AnimatorPlayWait() for other purposes, too, such as animating a character model?
When this happens, temporarily pause the game and check the portrait image GameObject. Is an animator controller assigned to its Animator component?
When this happens, temporarily pause the game and check the portrait image GameObject. Is an animator controller assigned to its Animator component?
Re: Animated portraits not working between scenes on the VN novel framework
There's no animator component that's been assigned, currently it doesnt actually work for any animators while im using the DontDestoryOnload version
As for AnimatorPlayWait(), ive not used that anywhere in the nodes for this scene, Would you prefer if i sent you a Repro-project?Re: Animated portraits not working between scenes on the VN novel framework
Yes, please. Send a reproduction project to tony (at) pixelcrushers.com and I'll check it in the morning. (I've finished work for the night.)
Re: Animated portraits not working between scenes on the VN novel framework
Will do, thank you for your continued help as always
Re: Animated portraits not working between scenes on the VN novel framework
Just in reply to this, i fixed the issue, i did have a AnimatorPlayWait and i also had a duplicate of the actor in the scene, my badTony Li wrote: ↑Wed Oct 09, 2024 9:10 pm Yes, please. Send a reproduction project to tony (at) pixelcrushers.com and I'll check it in the morning. (I've finished work for the night.)
Regardless, thank you for your time, these things happen i suppose
Re: Animated portraits not working between scenes on the VN novel framework
I'm just glad you found the issue and were able to fix it. Thanks for the update!