# New Update integration into existing Unity Project

**URL:** <https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583>\
**Category:** Unity SDK\
**Tags:** question, unity\
**Created:** [September 3, 2024, 3:22pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583 "2024-09-03T15:22:00Z")\
**Posts on this page:** 20\
**Page:** 3

<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:** [September 3, 2024, 3:48pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/41 "2024-09-03T15:48:21Z")

</div>

**Reply by luc118 | 2024-09-03 15:48:21**

I added this new folder file, I am still confused on what to do with the provided code file you sent.

---

<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:** [September 3, 2024, 3:48pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/42 "2024-09-03T15:48:37Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:48:37**

it is a seperated script

---

<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:** [September 3, 2024, 3:49pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/43 "2024-09-03T15:49:06Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:49:06**

Just important this player stats

---

<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:** [September 3, 2024, 3:49pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/44 "2024-09-03T15:49:41Z")

</div>

**Reply by luc118 | 2024-09-03 15:49:41**

I have and received these new errors:

Assets\Convai\Scripts\Runtime\Features\LongTermMemory\ConvaiLTMController.cs(3,30): error CS0234: The type or namespace name ‘Core’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\API\LongTermMemoryAPI.cs(7,30): error CS0234: The type or namespace name ‘LoggerSystem’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\ConvaiPlayerDataHandler.cs(3,30): error CS0234: The type or namespace name ‘LoggerSystem’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\ConvaiPlayerDataSO.cs(2,30): error CS0234: The type or namespace name ‘Attributes’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

---

<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:** [September 3, 2024, 3:50pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/45 "2024-09-03T15:50:09Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:50:09**

I understand, unfortunately it seems difficult to move 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:** [September 3, 2024, 3:51pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/46 "2024-09-03T15:51:12Z")

</div>

**Reply by luc118 | 2024-09-03 15:51:12**

Yes I understand. In regards to the errors involving differing GUID’s for certain things, do you think it would be easier for my to simply re-import everything and fix the errors that come with that?

---

<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:** [September 3, 2024, 3:51pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/47 "2024-09-03T15:51:46Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:51:46**

Namespaces have been updated in this update. So maybe you can remove these namespaces.

---

<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:** [September 3, 2024, 3:53pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/48 "2024-09-03T15:53:46Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:53:46**

I think you should open a new project and look at the errors, add them from the new project to your project.

---

<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:** [September 3, 2024, 3:55pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/49 "2024-09-03T15:55:16Z")

</div>

**Reply by luc118 | 2024-09-03 15:55:16**

I have removed a using directive that was causing an error. As seen in the screenshot the ConvAIAPIKEYSetup method is causing the errors, would there not be a using directive i could add to the code or a quick fix to solve it? I know that it is an existing method within my project as other scripts get the API key.

This is the error: The name ‘ConvaiAPIKeySetup’ does not exist in the current contextCS0103

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/b/b19195bc6d52db04f7846d1ffbc4ecf0620d5e50.png)

---

<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:** [September 3, 2024, 3:56pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/50 "2024-09-03T15:56:59Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:56:59**

Yes, could you please show me your ConvaiAPIKeySetup.cs

---

<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:** [September 3, 2024, 3:57pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/51 "2024-09-03T15:57:46Z")

</div>

**Reply by luc118 | 2024-09-03 15:57:46**

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/3/31654add33bf4c6c553978e7e26d17f479eba13b.png)

---

<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:** [September 3, 2024, 3:58pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/52 "2024-09-03T15:58:22Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:58:22**

using Convai.Scripts.Runtime.Utils

---

<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:** [September 3, 2024, 3:58pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/53 "2024-09-03T15:58:30Z")

</div>

**Reply by k3kalinix | 2024-09-03 15:58:30**

add this to LTM script.

---

<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:** [September 3, 2024, 4:00pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/54 "2024-09-03T16:00:09Z")

</div>

**Reply by luc118 | 2024-09-03 16:00:09**

That fixed the errors for the ConvAILTMController.cs script, thank you

---

<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:** [September 3, 2024, 4:00pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/55 "2024-09-03T16:00:28Z")

</div>

**Reply by luc118 | 2024-09-03 16:00:28**

There are more now for a dif script:

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\API\LongTermMemoryAPI.cs(7,30): error CS0234: The type or namespace name ‘LoggerSystem’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\ConvaiPlayerDataHandler.cs(3,30): error CS0234: The type or namespace name ‘LoggerSystem’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

Assets\Convai\Scripts\Runtime\PlayerStats\PlayerStats\ConvaiPlayerDataSO.cs(2,30): error CS0234: The type or namespace name ‘Attributes’ does not exist in the namespace ‘Convai.Scripts.Runtime’ (are you missing an assembly reference?)

**Images:**

 ![image.png](https://canada1.discourse-cdn.com/flex004/uploads/convai/original/2X/3/3710db84a1ccfc51b26a8921c27558adb9b0a05a.png)

---

<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:** [September 3, 2024, 4:00pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/56 "2024-09-03T16:00:41Z")

</div>

**Reply by k3kalinix | 2024-09-03 16:00:41**

remove line 3

---

<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:** [September 3, 2024, 4:00pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/57 "2024-09-03T16:00:47Z")

</div>

**Reply by k3kalinix | 2024-09-03 16:00:47**

add the same namespace here.

---

<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:** [September 3, 2024, 4:02pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/58 "2024-09-03T16:02:48Z")

</div>

**Reply by luc118 | 2024-09-03 16:02:48**

That cleared the APIKeysetup error as well as the line 3 one, however, there are still errors for the references to ConvAILogger

---

<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:** [September 3, 2024, 4:03pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/59 "2024-09-03T16:03:03Z")

</div>

**Reply by luc118 | 2024-09-03 16:03:03**

As seen in the screenshot^

---

<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:** [September 3, 2024, 4:05pm UTC](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583/60 "2024-09-03T16:05:49Z")

</div>

**Reply by k3kalinix | 2024-09-03 16:05:49**

Can you hover your mouse over the ConvaiLogger?

[Previous page](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583.md?page=2)

[Next page](https://forum.convai.com/t/new-update-integration-into-existing-unity-project/1583.md?page=4)
