Best way to trigger dialogue at specific key frame in Unity animation.
Posted: Tue Oct 20, 2020 9:52 am
I want to trigger dialogue base on specific keyframe at specific animation
I can put event on to that specific keyframe to trigger C# function
The problem is, I don't know how to properly use C# function to trigger the dialogue with this system yet.
I watched the tutorial video Dialogue System for Unity 2.x - Cutscene Sequences - Part 3: Messages & Timing
I can use use WaitForMessage(the string) in the Sequence (Trigger set to On Start and dialogue will wait for the message?)
And then I can call one of the function that have this inside
PixelCrushers.DialogueSystem.Sequencer.Message("the string");
Then my dialogue will get trigger, I think.
Any better way to do this? because this can involved a lot of strings.
I can put event on to that specific keyframe to trigger C# function
The problem is, I don't know how to properly use C# function to trigger the dialogue with this system yet.
I watched the tutorial video Dialogue System for Unity 2.x - Cutscene Sequences - Part 3: Messages & Timing
I can use use WaitForMessage(the string) in the Sequence (Trigger set to On Start and dialogue will wait for the message?)
And then I can call one of the function that have this inside
PixelCrushers.DialogueSystem.Sequencer.Message("the string");
Then my dialogue will get trigger, I think.
Any better way to do this? because this can involved a lot of strings.