Re: First text of a conversation node doesn't get displayed.
Posted: Fri Nov 03, 2017 6:51 am
Another day, another try 
The script execution order didn't change anything. But I found the problem. I'm not enterly sure why. Maybe you've got an insight.
It happens in the UnityUITypewriterEffect calss.
I commented the line yield return waitOneFrameBeforeStarting ? null : new WaitForEndOfFrame(); because when the running system came to this point it just broke and moved to the code where it calls Stop() at the end of the methode.
It only happens if you switch a scene and the first conversation node with text gets displayed.
I hope that I have written it understandably. I'm still not sure why it breaks, but I'll investigate more.

The script execution order didn't change anything. But I found the problem. I'm not enterly sure why. Maybe you've got an insight.
It happens in the UnityUITypewriterEffect calss.
Code: Select all
public IEnumerator Play()
{
if ((control != null) && (charactersPerSecond > 0))
{
// Setup:
InitAutoScroll();
//yield return waitOneFrameBeforeStarting ? null : new WaitForEndOfFrame();
if (audioSource != null) audioSource.clip = audioClip;
...
}
Stop();
}
It only happens if you switch a scene and the first conversation node with text gets displayed.
I hope that I have written it understandably. I'm still not sure why it breaks, but I'll investigate more.