Hello! I'm having a problem with a Timeline I've created for a scene. It's designed to be triggered when the player clicks on a door, in which case the camera switches, and NPC teleports then rotates into shot, says two lines of dialogue and then teleports back to where he was. The Timeline works great when the player clicks on the hotspot but for some reason its also playing the dialogue from the Timeline when the scene begins, but it's not triggering the animation of the NPC or the camera change, just the dialogue from the speech track. Any idea how to fix, or is there a better approach to triggering lines of speech in a timeline?
It looks like you're new here. If you want to get involved, click one of these buttons!
Comments
Odd. What are your AC/Unity versions, and does the dialogue stop playing on start if you Mute the Speech Track?
Is it possible "Play On Awake" is checked in the Playable Director component?
Unity 6.1 - AC 1.83
No the dialogue doesn't play if I mute the speech track in the Timeline.
The Playable Director component is not set to Play on Awake. Sorry I meant to say that in my first message.
Are there any other instances of the Engine: Control Timeline Action that could be playing it indavertently?
Try duplicating the GameObject that holds the Playable Director, deleting the original, and linking the copy to your Action. Does the issue persist?
I've scoured the scene and can't see any other Control Timeline Actions. I duped the GameObject and deleted the old one which left the Control Action with a Missing (Playable Director) message. Pointed it at the new GameObject and I'm still getting the same behaviour where the dialogue plays at the start of the level.
Also, if I have the Timeline window open when I run the scene, the playhead doesn't move across the timeline. But it does when I trigger the Timeline in the intended way. But its definitely originating that dialogue from the Timeline because if I mute the speech track before running, it doesn't show up. So odd.
Would you be able to PM me a .zip of your project, minus the Library folder? I think I'd need to see this for myself to understand what's going on.
I took the hard option and just got it working as an action list rather than a Timeline. If I come across the issue again I'll send over a project folder.