Possible Bug Text layout within TextBox not propegatting correctly based on Prefab

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
RetroVertigo
Posts: 55
Joined: Fri Apr 16, 2021 4:32 pm

Possible Bug Text layout within TextBox not propegatting correctly based on Prefab

Post by RetroVertigo »

Hey all
I might have a bug on my hands, but I am not sure. Here is the situation:

I have a prefab that is essentially an Actor Entity that contains the following:

Animator, Sprite Renderer, etc. (components needed for Unity Timeline)
Dialogue Actor script for Dialogue System for Unity

Here is a screengrab of the prefab entity:
Image

I use these prefabs within cutscenes to show different party members. Animation tracks, and conversation tracks mixed to show them moving and talking.

Everything works great except for one of my entities, the textbox is not aligned correctly like the others. Which is really weird since they are all the same prefab duplicated.

Here is the scene view showing the textBox alignment, etc.

Image

Here is another entity where the alignment, etc. is fine. I haven't made any changes to the prefabs at all. I even deleted the dwarf (problem) prefab and duplicated one of the others and added it all back into Timeline, same issue:

Image

Also, here is the dialog tree on the Dwarf piece, which is giving me trouble. I don't see any difference here either for the alignment issue. Really weird, but I might be missing some key piece or config for this:

Image
RetroVertigo
Posts: 55
Joined: Fri Apr 16, 2021 4:32 pm

Re: Possible Bug Text layout within TextBox not propegatting correctly based on Prefab

Post by RetroVertigo »

Close this one out. I feel really stupid. This was an issue with the Vertical layout group and text that was scrolling upwards when I had more than one line. Feel REALLY stupid on this one, so apologies for the thread.
User avatar
Tony Li
Posts: 22159
Joined: Thu Jul 18, 2013 1:27 pm

Re: Possible Bug Text layout within TextBox not propegatting correctly based on Prefab

Post by Tony Li »

No worries. That's just game dev. We all do it. I appreciate you taking the time to jot down what the issue was. It'll help other people in the future (maybe me!) who run into the same issue.
Post Reply