# Changing Characters at runtime

**URL:** <https://forum.convai.com/t/changing-characters-at-runtime/2015>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [October 28, 2024, 10:51am UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015 "2024-10-28T10:51:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 10:51am UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/1 "2024-10-28T10:51:14Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:11pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/2 "2024-10-28T12:11:13Z")

</div>

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

Hello \<@712938291602915429\>,

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:11pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/3 "2024-10-28T12:11:21Z")

</div>

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

Welcome to Convai Community!

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:11pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/4 "2024-10-28T12:11:36Z")

</div>

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

Are you using Unity?

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:12pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/5 "2024-10-28T12:12:33Z")

</div>

**Reply by jusi\_cavalli | 2024-10-28 12:12:33**

Hello \<@1023671043287699568\> yes i am using Unity

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:13pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/6 "2024-10-28T12:13:16Z")

</div>

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

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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:13pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/7 "2024-10-28T12:13:57Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:14pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/8 "2024-10-28T12:14:22Z")

</div>

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

What is the issue?

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:15pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/9 "2024-10-28T12:15:07Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:16pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/10 "2024-10-28T12:16:06Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:16pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/11 "2024-10-28T12:16:09Z")

</div>

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

Check console logs.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 12:16pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/12 "2024-10-28T12:16:56Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 28, 2024, 9:56pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/13 "2024-10-28T21:56:09Z")

</div>

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

please share console logs.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 31, 2024, 9:49pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/14 "2024-10-31T21:49:59Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [October 31, 2024, 9:51pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/15 "2024-10-31T21:51:15Z")

</div>

**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

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 5, 2024, 11:33pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/16 "2024-11-05T23:33:16Z")

</div>

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

I understand, how do you update the character id?

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 8, 2024, 9:23pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/17 "2024-11-08T21:23:24Z")

</div>

**Reply by jusi\_cavalli | 2024-11-08 21:23:24**

I am using in the start method and a button

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 8, 2024, 9:25pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/18 "2024-11-08T21:25:50Z")

</div>

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

> **[Discord - Group Chat That’s All Fun & Games](https://discord.com/channels/890819304386338856/1304099316381515878/1304100927786979410)**
>
> Discord is great for playing games and chilling with friends, or even building a worldwide community. Customize your own space to talk, play, and hang out.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 8, 2024, 9:26pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/19 "2024-11-08T21:26:00Z")

</div>

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

Please check this thread.

---

<div class="post-metadata">

**Author:** ![K3](https://yyz2.discourse-cdn.com/flex004/user_avatar/forum.convai.com/k3/32/2611_2.png) [@K3](https://forum.convai.com/u/K3)\
**Post date:** [November 8, 2024, 9:52pm UTC](https://forum.convai.com/t/changing-characters-at-runtime/2015/20 "2024-11-08T21:52:00Z")

</div>

**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

[Next page](https://forum.convai.com/t/changing-characters-at-runtime/2015.md?page=2)
