Forum rules - please read before posting.

Unity UI subtitles player name and portrait not showing up.

Does it have something to do with the fact that both player and narrator don't have a AC.Char instance?

void Call_OnStartSpeech(AC.Char speakingCharacter, string speechText, int lineID)
    {
        Debug.Log(speakingCharacter);// + ": " + speechText);
    }

This prints Null for both player and Narrator character.

Comments

  • It should be null for a narrator - since a narrator basically means no character was supplied.

    The player should return the Player class, however. Both Player and NPC are subclasses of Char, so there shouldn't be a problem there. I cannot recreate such an issue, so you'll need to provide more details and context.

  • I'm just using it normally.

    Oh, the player prefab/character/gameobject is not in the scene where the conversation is taking place. While other NPCs have an option to link their Prefabs, player doesn't so maybe that's what causing it?

  • Checking "Is Player?" is shorthand for auto-assigning the Player present in the scene. If you want to refer to the Player prefab, uncheck that and assign it directly.

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.