Hi,
QUESTION A
Setting just
Display Name of it also makes it cant find the Dialogue Actor or the gameObject.
Code: Select all
DialogueLua.SetActorField("Jenny", "Display Name", "A pretty looking girl);
I set this during the conversation which does not affect the
Display Name for the "current conversation" which seems expected.
Then, as I start a new conversation,
Display Name got changed but it does not find the actor gameObject any longer. (almost seems like it is looking for a gameObject named "A pretty looking girl"? but I
only set
Display Name of it..
If this is meant to be like this, then, how do I get the Jenny gameObject while
only her
Display Name is set to "A pretty looking girl"?
----------------
QUESTION B
If I am not doing below, then how do I set the Display Name to be affected
during the "current conversation"?
Code: Select all
if (DialogueManager.IsConversationActive)
{
var actorObj = DialogueManager.MasterDatabase.GetActor(actor);
if (actorObj != null)
{
var info = DialogueManager.ConversationModel.GetCharacterInfo(actorObj.id);
if (info != null) info.Name = foundName;
}
}
----------------
QUESTION C
The Dialogue System will look for a GameObject whose Dialogue Actor component is set to the Name.
"Name" in this quote, are you referring to the info.Name or just Display Name?
----
Btw, in all cases, Dialogue Actor component's actor field is just "Jenny" from the beginning.