problems of using dialogue system with timeline and cinemachine
Posted: Thu May 14, 2020 9:50 pm
Hi, i am new to dialogue system and i really love it.
But i have some problems when using dialogue system with timeline and cinemachine.
1、Timeline
In the manual,i noticed that there is a "#:binding" parameter in Timeline(). I have a dialogue which is controlled by timeline and I want to bind a npc (the conversant in the dialogue) to the first track of timeline to play animations but it doesn't work.
This is what i write in the sequence:
I also tried to add the Timeline Trigger component to the npc and assigned the npc to “Bindings”. But it doesn't work either.
How should i do it?
2、Cinemachine
I am trying to use cinemachine cameras in the dialogue.
When dialogue happens the player’s camera should be cut to CameraNpc(a camera that looks at npc) and when player speaks the camera should be cut to CameraPlayer(a camera that looks at player which is different from the camera when you control the player).
I followed this post http://pixelcrushers.com/phpbb/viewtopi ... hine#p7549 and set my conversation's
Default Sequence to
Default Player Sequence to:
I also added the Cinemachine Camera Priority On Dialogue Event component to my player to set the player control camera’s priority to 0 during the conversation.
My problem is when the first time my cameras change between each other there is still a blend.The cameras still move to each other instead of cut.(for example, the first time CameraNpc change to CameraPlayer there is a blend but since the second time the ”cut” works fine)
I am not sure if i am doing it right.Could you please give me some help?
I am using unity Unity 2019.1.14f1 (64-bit),Dialogue System 2.2.6
Thanks so much!
But i have some problems when using dialogue system with timeline and cinemachine.
1、Timeline
In the manual,i noticed that there is a "#:binding" parameter in Timeline(). I have a dialogue which is controlled by timeline and I want to bind a npc (the conversant in the dialogue) to the first track of timeline to play animations but it doesn't work.
This is what i write in the sequence:
Code: Select all
Timeline(play,timelinecs,,nostop,0:Private Hart);
{{default}}
How should i do it?
2、Cinemachine
I am trying to use cinemachine cameras in the dialogue.
When dialogue happens the player’s camera should be cut to CameraNpc(a camera that looks at npc) and when player speaks the camera should be cut to CameraPlayer(a camera that looks at player which is different from the camera when you control the player).
I followed this post http://pixelcrushers.com/phpbb/viewtopi ... hine#p7549 and set my conversation's
Default Sequence to
Code: Select all
CinemachinePriority(CameraNpc,99,cut);
CinemachinePriority(CameraPlayer,0,cut);
CinemachineTarget(CameraNpc)
Code: Select all
CinemachinePriority(CameraNpc,0,cut);
CinemachinePriority(CameraPlayer,99,cut);
CinemachineTarget(CameraPlayer)
My problem is when the first time my cameras change between each other there is still a blend.The cameras still move to each other instead of cut.(for example, the first time CameraNpc change to CameraPlayer there is a blend but since the second time the ”cut” works fine)
I am not sure if i am doing it right.Could you please give me some help?
I am using unity Unity 2019.1.14f1 (64-bit),Dialogue System 2.2.6
Thanks so much!