NaninovelInventory c# compile error in Unity

The engine is not working as expected? Documentation is wrong or out of date? Let us know here!
Forum rules
We are not providing support via this forum; it's community-driven. For official support see https://naninovel.com/support/#naninovel-support
Post Reply
TuTlo
Posts: 14
Joined: 02 Jun 2022 14:40

NaninovelInventory c# compile error in Unity

Post by TuTlo »

Hi,

I just import the latest version of NaninovlInventory into my project ( By downloading and import manually).

I got a bunch of compile error, mainly complaining that UniTask<>, AsyncToken could not be found in Unity.

e.g.
Assets/NaninovelInventory/Runtime/InventoryManager.cs(32,16): error CS0246: The type or namespace name 'UniTask' could not be found (are you missing a using directive or an assembly reference?)
Assets/NaninovelInventory/Runtime/Commands/AddItem.cs(15,53): error CS0246: The type or namespace name 'AsyncToken' could not be found (are you missing a using directive or an assembly reference?)

I have already added NaninovelInventory Runtime and Editor in Engine. Could you help me on this?

p.s. I think same thing happened in my VS code as well, but this is only because my VS code is not config correctly?

Environment reference:
Unity editor: Version 2020.3.17f1c1 Personal
UnityPackage for my vscode:
"com.unity.ide.visualstudio": "2.0.11",
"com.unity.ide.vscode": "1.2.3",

Let me know if you need any more info.

Thanks!

idaot
support
Posts: 262
Joined: 01 Aug 2020 08:25

Re: NaninovelInventory c# compile error in Unity

Post by idaot »

You need to update Naninovel to 1.17.

TuTlo
Posts: 14
Joined: 02 Jun 2022 14:40

Re: NaninovelInventory c# compile error in Unity

Post by TuTlo »

yep you are right I had the old version
thanks!!

Post Reply