Hi Tony,
I'm wanting to use Arcweave's Guids as the customEntryTag for our VO files, it's not as elegant as "conversation_entryID" but it's consistent and I know we'll be making a lot of tweaks and changes to the script as we go.
The documentation says to "assign delegate method to DialogueDatabase.getCustomEntrytag(Conversation, DialogueEntry)", I'm so sorry if this is basic, but it's over my scripting-pay-grade. What changes do I make to this to reference the Guid custom field?
Pete.
Arcweave Guid as custom EntryTag
Re: Arcweave Guid as custom EntryTag
Hi Pete,
Try something like this:
Try something like this:
Code: Select all
private void Start()
{
DialogueDatabase.getCustomEntrytag += OnGetEntrytag;
}
private string OnGetEntrytag(Conversation conversation, DialogueEntry entry)
{
return Field.LookupValue(entry.fields, "Guid");
}
Re: Arcweave Guid as custom EntryTag
Fantastic! Thank you!
I ended up having to put this in DialogueDatabase, with the Start() line in getEntryTag() instead, so that I could export a VoiceOver script, but it all appears to be working!
Thank you so much, as always.
Pete.
I ended up having to put this in DialogueDatabase, with the Start() line in getEntryTag() instead, so that I could export a VoiceOver script, but it all appears to be working!
Thank you so much, as always.
Pete.
Re: Arcweave Guid as custom EntryTag
Glad to help!