Forum rules - please read before posting.

How to get speaker name while using UnityUI

Hi,

I am using the WalkingDead menu style. This has changed the subtitles to use Unity UI as a source.
As a default there is only a Speech line element.
I copied over the Speaker element from the old Subtitles menu but I need to link it to something in UnityUI.

In the Speech line element while in UnityUI mode there is a SubtitlesUI prefab that is being used. I assumed this would give me a good lead on how text is being red by UnityUI.
This prefab only has a txtSubtitles Object which seems pretty basic. How does this object dynamically retrieves the speech line?
How would I go about getting a Speaker element to show the active speaker while using UnityUI

PS: I tried switching the new Subtitles menu to Adventure Creator and then copied over the Speaker element from the old as I thought this would be a quick solution for now. For whatever reason its impossible to get the speaker title to show above the Speech line!

Comments

  • edited June 26

    When using Unity UI, the elements listed in the Menu contain the data, and the Text objects in the UI prefab are where that data gets displayed.

    To add the speaker name to a Unity UI-based Menu, you'll need to add both the Label element (of type "Speaker Label"), and a Text object to the UI to display it.

    To connect the two, select the Label in the Menu Manager while viewing the Unity UI prefab in Prefab Mode, and drag the Text into its "Linked Text" field.

Sign In or Register to comment.

Howdy, Stranger!

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

Welcome to the official forum for Adventure Creator.