Error on Unity saying "you are not clos enough to talk to the character"

Original Discord Post by yahyaamin1997 | 2024-08-27 12:54:50

Hello everyone, my Unity project was working just fine but lately it shows an error saying “You are not close enough to the character to talk”. Its also not showing the Convai dialogue box that it used to show for entering text. How to fix this issue?

Thanks and Regards,
Yahya Amin

Reply by k3kalinix | 2024-08-27 13:41:03

Hello <@1270648993868943371> :wave:t2:

Reply by yahyaamin1997 | 2024-08-27 13:41:29

Hey K3 how are you doing

Reply by k3kalinix | 2024-08-27 13:42:24

I’m fine, thanks for asking :smiling_face:. How are you?

Reply by yahyaamin1997 | 2024-08-27 13:42:41

Im good too :sweat_smile:

Reply by k3kalinix | 2024-08-27 13:42:54

This notification message appears when there is no active NPC.

Reply by yahyaamin1997 | 2024-08-27 13:43:43

Oh ok how do I make it active?

Reply by k3kalinix | 2024-08-27 13:44:14

Did you edit any Convai scripts?

Reply by yahyaamin1997 | 2024-08-27 13:44:14

I have the character imported

Reply by k3kalinix | 2024-08-27 13:44:39

Could you please show me Hiearchy?

Reply by yahyaamin1997 | 2024-08-27 13:45:05

Noo, no edits made. I tried importing the character again but it didnt work :confused:

Reply by yahyaamin1997 | 2024-08-27 13:45:24

Oh ok I’ll send here in a while :sweat_smile:

Reply by yahyaamin1997 | 2024-08-27 13:46:30

In around an hour

Reply by yahyaamin1997 | 2024-08-27 15:27:35

Images:

Reply by yahyaamin1997 | 2024-08-27 15:27:43

Hey K3 this is my project hierarchy

Reply by k3kalinix | 2024-08-27 15:30:02

Please clear the console and try talking to the character again, then let me see the console logs.

Reply by yahyaamin1997 | 2024-08-27 15:34:02

Oh ok

Reply by yahyaamin1997 | 2024-08-27 15:36:49

[Warning][Character]: No target object set for head tracking. Setting default target as main camera
[Stack Trace - Method: InitializeTargetObject, at Line: 155 in File: C:\Users\abc\AI Receptionist\Assets\Convai\Scripts\Runtime\Core\ConvaiHeadTracking.cs]
UnityEngine.Debug:LogWarning (object)
Convai.Scripts.Utils.Logger:LogMessage (string,Convai.Scripts.Utils.Logger/LogLevel,Convai.Scripts.Utils.Logger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/Logger.cs:135)
Convai.Scripts.Utils.Logger:Warn (string,Convai.Scripts.Utils.Logger/LogCategory,object) (at Assets/Convai/Scripts/Runtime/LoggerSystem/Logger.cs:180)
Convai.Scripts.Utils.ConvaiHeadTracking:InitializeTargetObject () (at Assets/Convai/Scripts/Runtime/Core/ConvaiHeadTracking.cs:155)
Convai.Scripts.Utils.ConvaiHeadTracking:InitializeComponents () (at Assets/Convai/Scripts/Runtime/Core/ConvaiHeadTracking.cs:90)
Convai.Scripts.Utils.ConvaiHeadTracking:Start () (at Assets/Convai/Scripts/Runtime/Core/ConvaiHeadTracking.cs:68)

Reply by yahyaamin1997 | 2024-08-27 15:37:04

I only get the warning above. No errors :confused:

Reply by k3kalinix | 2024-08-27 15:37:54

Did you get close to the character?