The Dialogue System is fantastic!
I have an issue, i don't know if i'm either not doing it right or if the system doesn't support that.
In my database, i have actors for each of my 8 different in-game characters. Since it's a 4 player multiplayer game, the players can pick any character making a lot of possible combination. The dialogues are mostly character specific but for efficiency purpose, i want some generic dialogue targetted to Player1 so i created a "Player1" actor. I already tried in the editor and i can assign 2 DialogueActor components on my character game object and the dialogue using the bubble UI works perfectly.
However, when i add a DialogueActor component and changes the values of actor, barkUI and subtitleUI via script at runtime, it doesn't work.
My code looks like this:
Code: Select all
var dA = spawnedCharacter.AddComponent<DialogueActor>();
dA.actor = ("Player"+(slot.playerNumber+1));
dA.barkUISettings.barkUI = bubbleBarkUI;
dA.standardDialogueUISettings.subtitlePanelNumber = SubtitlePanelNumber.Custom;
dA.standardDialogueUISettings.customSubtitlePanel = bubbleSubtitleUI;
Am I doing it wrong or the dual actor component isn't meant to be supported in the first place?