Getting response ID through C# code
Posted: Fri Oct 20, 2023 11:32 am
Hello !
I would like to retrieve in my C# script the ID of the responses that are actually shown on screen.
I was able to get a Response array using this :
or this :
But there is no reference to the corresponding DialogueEntry, so I can't get the ID.
Just to explain a bit why I need the responses ID, it is to quickly link them to a corresponding assets, like an image or a sound stored in Resources folder. There is so much Conversations and Nodes in my database, I want to set it up so I don't have to do the links manualy.
Thanks in advance for your help.
I would like to retrieve in my C# script the ID of the responses that are actually shown on screen.
I was able to get a Response array using this :
Code: Select all
Response[] responses = DialogueManager.CurrentConversationState.pcResponses;
Code: Select all
public void OnConversationResponseMenu(Response[] responses) { }
Just to explain a bit why I need the responses ID, it is to quickly link them to a corresponding assets, like an image or a sound stored in Resources folder. There is so much Conversations and Nodes in my database, I want to set it up so I don't have to do the links manualy.
Thanks in advance for your help.