Handling Interaction Logic for Two Separate Avatars in One Scene

Hello,

I have a scene that contains two different avatars, each one assigned to a different use case.
What I want to achieve is to interact with each avatar independently, so that triggering interaction with one avatar does not affect the other, and does not cause any conflicts, overlap, or runtime errors.

  • Each avatar responds only to its own interactions.

  • There is no shared state that could cause interference between the two avatars.

  • The system remains stable without unexpected behavior or errors.

Could you please advise on how to achieve this?

Thank you in advance for your help.

Hello,

I would also like to understand how this can be implemented properly.
Perhaps using two different Character IDs could prevent any mixup between the avatars.

Additionally, would it be possible to handle this by using a custom script that controls which avatar is active based on the camera focus or interaction logic?

Hello!

Thank you for replying!

I am not entirely sure, but this might be achievable by modifying the existing NPC Manager script, or possibly removing it altogether and replacing it with a custom script that handles each NPC independently.

Hello!

any suggestion for this if that possible ?

it’s urgent

It already works this way by default. I didn’t understand your question.

I have two different NPCs in the environment, and i can talk to only one of them at a time. Do I need to take any action to prevent interruptions or conflicts between the two NPCs during interaction?

How will you talk at the same time?

sI apologize for the misunderstanding. What I meant is the following:
When I try to talk to the first avatar inside the VR environment, it does not respond. The second avatar, on the other hand, does not speak at all.

Inside VR, I can only see the chat box for the first avatar, but the avatar itself does not speak or respond. For the second avatar, nothing appears at all, and I cannot interact with it in any way.

My question is whether there could be any interference or conflict between the two avatars that is causing this behavior.

PS: the avatar is working fine inside the unity editor.

Thank you so much. I know I’m asking a lot, but I really need to resolve everything before tomorrow.

Thanks in advance appreciate it

this is what i mean by i can only see the chatbox

You should check VR logs.

U mean using VR-PC ?

If it works flawlessly in Unity Editor, the problem isn’t with the plugin. It might be related to your VR headset, connection, microphone, etc. You should check your VR logs.

checked everything is fine for the headset

Please check the VR logs.

sorry but i didn’t get it, how to check

You can use the Android LogCat package or the Meta Quest Developer Hub. You can search on Google or use AI.

here is what i got

Test and search Convai.