Changing Characters at runtime

Original Discord Post by jusi_cavalli | 2024-10-28 10:51:14

Hello , i have an appp that i build using Convai SDK and Unity and i want to allow the users to use custom characters by entering the name and ID of the character and it appears is Convai supporting this .
Thanks in advance

Reply by k3kalinix | 2024-10-28 12:11:13

Hello <@712938291602915429>,

Reply by k3kalinix | 2024-10-28 12:11:21

Welcome to Convai Community!

Reply by k3kalinix | 2024-10-28 12:11:36

Are you using Unity?

Reply by jusi_cavalli | 2024-10-28 12:12:33

Hello <@1023671043287699568> yes i am using Unity

Reply by k3kalinix | 2024-10-28 12:13:16

The Convai NPC component has a Character ID field. You can change this at runtime.

Reply by jusi_cavalli | 2024-10-28 12:13:57

I did that but it didn’t work if it’s okay to tell me what should i do exactly

Reply by k3kalinix | 2024-10-28 12:14:22

What is the issue?

Reply by jusi_cavalli | 2024-10-28 12:15:07

The issue is when i changed the name and ID in the Convai NPC component nothing happened

Reply by jusi_cavalli | 2024-10-28 12:16:06

What i am trying to achieve is when the user open the app i will ask the user to enter the name and id of character and then that character will appear

Reply by k3kalinix | 2024-10-28 12:16:09

Check console logs.

Reply by jusi_cavalli | 2024-10-28 12:16:56

Or in another scenario i want to make a grid list of images off all the character you can interact with and let the user select what he want s

Reply by k3kalinix | 2024-10-28 21:56:09

please share console logs.

Reply by jusi_cavalli | 2024-10-31 21:49:59

Hi sorry for the late response, but I don’t get any output in the console

Reply by jusi_cavalli | 2024-10-31 21:51:15

What i am trying to do is to get NPC at runtime let’s say when i build the game for windows or iphone and i want to change my character or NPC how to do it

Reply by k3kalinix | 2024-11-05 23:33:16

I understand, how do you update the character id?

Reply by jusi_cavalli | 2024-11-08 21:23:24

I am using in the start method and a button

Reply by k3kalinix | 2024-11-08 21:25:50

Reply by k3kalinix | 2024-11-08 21:26:00

Please check this thread.

Reply by jusi_cavalli | 2024-11-08 21:52:00

Okay thanks i will check and test and get back to you
Also sorry for the late replys I don’t get any notifications from discord