Forum rules - please read before posting.

Customizing Speech Subtitle Prefab

Hello,

I'm trying a few things on AC's speech subtitle prefab in which some guidance is needed.

  1. Changing the default speech subtitle prefab:
    I'm currently usign the default prefab for speech subtitles [ref1] (only the font was changed). How can I change that
    black box for a customized asset?

  2. Fixing Speaker Icon's Aspect Ratio:
    As you can see in [ref1] the Speaker's Icon is a little bit flattened. How can I fix that?

ref: https://imgur.com/a/VFnGCI1

FYI, I'm using Unity 2020.3.11 and Adventure Creator 1.74.2

Comments

  • You mention prefab, but are you using Unity UI for your Menu's Source? The default SubtitlesUI prefab features rounded edges.

    If not, I recommend switching to Unity UI as it offers much more in the way of customisation. You can enable it by switching the Menu's Source property to Unity Ui Prefab.

    Editing the Menu's appearance is then a case of opening up the Linked canvas prefab at the bottom of the Menu's properties. There you can change the color of the "Panel" object's Image sprite.

    You'll need to add a new Image for your Speaker icon (and link it to the Menu Manager - see this tutorial), but you can ensure it's correctly drawn by checking Preserve Aspect in the Image component's Inspector.

    If you instead rely on the Adventure Creator Source option, you can assign a new background texture in the SubsSpeakerLabel and SubsLineLabel element property panels. To change the size of your speaker icon, select the Graphic element and set its Size to Manual, and adjust the width slider to suit.

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.