Connect custom scriptable character to dialogue system
Posted: Mon May 22, 2023 4:57 pm
I have a scriptable character script that contains information such as the character's name, sprite, and other details. My goal is to connect this script with the dialogue system so that I can access the appropriate character when someone is talking.
I came across this code snippet: It allowed me to choose an actor from the character scriptable object. However, I'm unsure about how to proceed from this point.
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.
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.