I came across this code snippet:
Code: Select all
[ActorPopup(true)] public string actor;
One possible solution is to create an additional script that manages all the different characters. When someone is talking, I can retrieve the actor's name and compare it with the list of characters to determine who it is. While this approach works, I believe there might be a more efficient way to accomplish this.