Scene / SO data -> custom actor field how to
Posted: Thu Nov 12, 2020 1:13 pm
Context: I'm using the Quest Machine system to initiate the Dialogue System conversations.
Trying to figure out the best (or simplest!) way to provide a custom field from a npc gameobject through to the dialogue ui, namely I want to show a model of a character instead of a sprite, so let's say I want to provide a gameobject prefab.
Putting a Dialogue Actor component on any particular quest giver object seems to be the workflow for getting actor specific data through to the dialogue system, but how would I go about adding custom fields? Subclass DialogueActor, and then get the dialogue database editor to pick it the data in the actor fields? Then finally get the data read into a custom dialogue ui class?
[...]
I did some more digging while writing this and got it going using a similar approach to https://www.pixelcrushers.com/phpbb/vie ... hp?p=16816 (substituting a render texture for the object itself)! But I would still very much appreciate your answer on this! What would you say is your ideal approach for getting custom data through to the dialogue system?
Hope this all makes sense
Cheers!
Trying to figure out the best (or simplest!) way to provide a custom field from a npc gameobject through to the dialogue ui, namely I want to show a model of a character instead of a sprite, so let's say I want to provide a gameobject prefab.
Putting a Dialogue Actor component on any particular quest giver object seems to be the workflow for getting actor specific data through to the dialogue system, but how would I go about adding custom fields? Subclass DialogueActor, and then get the dialogue database editor to pick it the data in the actor fields? Then finally get the data read into a custom dialogue ui class?
[...]
I did some more digging while writing this and got it going using a similar approach to https://www.pixelcrushers.com/phpbb/vie ... hp?p=16816 (substituting a render texture for the object itself)! But I would still very much appreciate your answer on this! What would you say is your ideal approach for getting custom data through to the dialogue system?
Hope this all makes sense
Cheers!