Search found 20714 matches

by Tony Li
Mon May 06, 2024 8:20 am
Forum: Dialogue System for Unity
Topic: Scene manager
Replies: 3
Views: 30

Re: Scene manager

Hi, If I understand you correctly, you want to change scenes after a video has finished playing. This may require a short script. Maybe something like: using System.Collections; using UnityEngine; using UnityEngine.Video; using PixelCrushers; public class LoadSceneAfterVideo : MonoBehaviour { public...
by Tony Li
Mon May 06, 2024 8:06 am
Forum: Dialogue System for Unity
Topic: How to add/subtract int in C#
Replies: 5
Views: 43

Re: How to add/subtract int in C#

Hi, If you want to add or subtract a C# variable from within a conversation (e.g., a dialogue entry's Script field), please see How To: Connect C# Variables to Dialogue System's Lua . If you want to add or subtract a Dialogue System Lua variable variable from within C#, use DialogueLua .GetVariable(...
by Tony Li
Sun May 05, 2024 10:39 pm
Forum: Dialogue System for Unity
Topic: Camera follow player walking during sequence
Replies: 9
Views: 106

Re: Camera follow player walking during sequence

Hi, Assuming that vcam is taking priority (i.e., it has the highest Priority value of all vcam in the scene after using the CinemachinePriority() sequencer command), then it's a configuration issue with your vcam. Try searching up tutorial videos on YouTube, such as: [media]https://www.youtube.com/w...
by Tony Li
Sun May 05, 2024 9:08 pm
Forum: Dialogue System for Unity
Topic: Camera follow player walking during sequence
Replies: 9
Views: 106

Re: Camera follow player walking during sequence

Hello, The first parameter to CinemachineTarget() should be the name of the virtual camera GameObject, not the name of the subject that it will follow. Instead of CinemachineTarget(), I recommend creating a vcam GameObject that is configured to follow Koza. Then set its Priority to 0, or whatever va...
by Tony Li
Sun May 05, 2024 12:15 pm
Forum: Dialogue System for Unity
Topic: Camera follow player walking during sequence
Replies: 9
Views: 106

Re: Camera follow player walking during sequence

Hi, If you were in 3D, I'd recommend using the LiveCamera() sequencer command that follows the subject, versus the Camera() sequencer command that records the destination position when the command starts and moves the camera there without following the subject. The 2D equivalent of Camera() is Zoom2...
by Tony Li
Sun May 05, 2024 9:17 am
Forum: Dialogue System for Unity
Topic: Multple NPCS in a conversation
Replies: 3
Views: 46

Re: Multple NPCS in a conversation

Yes. Just inspect a dialogue entry node and set its Actor dropdown to the NPC/player actor who you want to speak that line. Related: Character GameObject Assignments
by Tony Li
Sat May 04, 2024 11:24 am
Forum: Dialogue System for Unity
Topic: OnConversationEnd triggered twice
Replies: 3
Views: 55

Re: OnConversationEnd triggered twice

Hi,

No, OnConversationEnd will run on the Dialogue Manager and the actor. If the conversant is different from the actor, it will also run on the conversant.