Hello,
I'm having an issue where I created a Unity UI panel for my dialogue and subtitle text to appear in, but no text appears when it is activated. I followed this tutorial ( https://adventurecreator.org/tutorials/creating-inventory-bar-unity-ui ) to create and use a UI panel to use for the subtitles menu. Subtitle text should appear in the ui box the same way it would with the default AC subtitle UI. Currently I'm testing this by clicking a hotspot that activates a dialogue action, then checks to make sure the action completed. The dialogue text should appear in the UI box when activated, but the action activates without showing any text. If I use the default AC subtitle menu instead, the text shows up just fine there.
I'm unsure what I missed that would allow the text to show up in the UI box, or what's stopping it from being visible. I'm using AC version 1.70.4.
Thanks
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Welcome to the community, @estedman.
I would recommend checking the Console for related messages, but the main thing would be to check that the Text component that you want to use for subtitle display is properly linked to the correct Label element in your Menu's properties.
Locate the Label element in your Menu that has its Label type set to Dialogue Line. It should display a "Constant ID" value beneath its Linked Text field. For it to connect to your UI Text component, this ID value needs to match the "Constant ID" component attached to the Text's GameObject.
This component gets added automatically when you drag the Text component into the "Linked Text" field, but you need to make sure that this change is applied to the original prefab, if you performed this with a scene instance of that prefab.
Do these two ID numbers match? If you can share screenshots of both, I'll be better able to see what the issue might be.
Do be aware, though, that the default interface provides your with a "Unity UI" alternative for all of the default menus - including Subtitles. If you've been changing the linked field values it may be best to rebuild your Menu Manager / UI prefabs using the New Game Wizard again, but each of the default menus should work in Unity UI just by changing their Source to Unity Ui Prefab.
If you can get the default Unity UI interface to display correctly, it's probably easier to just modify the provided SubtitlesUI canvas prefab to suit your needs.