Sequencer - Opsive Ultimate Character Controller Intergration

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
StateOfArtGameStudio
Posts: 6
Joined: Sun Jul 21, 2024 8:54 pm

Sequencer - Opsive Ultimate Character Controller Intergration

Post by StateOfArtGameStudio »

Hello,

I cannot make sequencer work with UCC together. Wheter I set 'detach camera' on Converse ability or not there are two problems appearing:

1. Camera is copied with all children objects. UCC creates 'First Person Objects' under camera as child. That child has awake method that referes to Ultimate Character Locomotion script. This reference is lost on object creation and results in null exception error.

2. I tried to detach camera from its children to test further. Even when I did, there is another error. The character now don't have 'look source'. This second error does not apeear instantly. First the full dialog is played as designed. Even after finish there is little time that I can move character. And in like half a second error exception appears:

Error: There is no look source attached to the character Dalia. Ensure the character has a look source attached. For player characters the look source is the Camera Controller, and AI agents use the Local Look Source.
UnityEngine.Debug:LogError (object)


And the converse ability is not activated on player.

Moreover I had got this on my original message: Forbidden. Message seems to be spam. Anti-Spam by CleanTalk.
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequencer - Opsive Ultimate Character Controller Intergration

Post by Tony Li »

Hi,

Sorry about that message you got on the forum. Our anti-spam software must have gotten caught in the spam filter.

If you detach the camera, make sure to set its Tag to MainCamera.

You may find it easier, however, to assign a separate camera prefab to the Dialogue Manager's Display Settings > Camera & Cutscene Settings > Sequencer Camera. The Dialogue Manager will instantiate an instance of this prefab and keep it inactive. During sequences, the Dialogue System will activate it and use it for all Camera() sequencer commands. This way you can keep your UCC camera untouched. Set the Depth of your sequencer camera to a higher value than your UCC camera so it takes precedence during cutscenes. You can also apply different postprocessing effects to your sequencer camera if you want, such as a strong depth of field that focused on the talking characters and blurs the distant background.
StateOfArtGameStudio
Posts: 6
Joined: Sun Jul 21, 2024 8:54 pm

Re: Sequencer - Opsive Ultimate Character Controller Intergration

Post by StateOfArtGameStudio »

Clean, fast solution. Thanks :)
User avatar
Tony Li
Posts: 22037
Joined: Thu Jul 18, 2013 1:27 pm

Re: Sequencer - Opsive Ultimate Character Controller Intergration

Post by Tony Li »

Glad to help! If you run into any other questions regarding sequences, don't hesitate to ask.
Post Reply