How to Change ActorName at runtime
Posted: Tue May 27, 2025 4:16 am
Hi Tony,
I'm so happy about the DS updates! I'm always amazed by the convenient features
Anyway, I'm currently using DS with the EasySave3.
During on conversation, I've made it so that if the player clicks on an 'Info' UI button, change variables like their name and age at any time. I've linked the name like this in my C#Script:
like this, but the character name of the text panel changed right away during runtime,
but [var=Actor] Tag used in the Dialogue Text didn't change. so:
I added this code and did [var=PlayerName], and it changed right away.
a better method for the [var=Actor] tag to reflect the changed name immediately?
(Of course, it does change if I restart the conversation or scene,,,, but...)
I'm so happy about the DS updates! I'm always amazed by the convenient features

Anyway, I'm currently using DS with the EasySave3.
During on conversation, I've made it so that if the player clicks on an 'Info' UI button, change variables like their name and age at any time. I've linked the name like this in my C#Script:
Code: Select all
public void SaveName()
{
string newSaveName = userName.text;
DataManager.instance.ppDatas.playerName = newSaveName;
DialogueManager.ChangeActorName("Player", newSaveName);
}
but [var=Actor] Tag used in the Dialogue Text didn't change. so:
Code: Select all
DialogueLua.SetVariable("PlayerName", newSaveName);
a better method for the [var=Actor] tag to reflect the changed name immediately?
(Of course, it does change if I restart the conversation or scene,,,, but...)