NaninovelInventory c# compile error in Unity

Posted: 05 Jul 2022 16:32
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!


Re: NaninovelInventory c# compile error in Unity

Posted: 05 Jul 2022 16:45
by idaot

You need to update Naninovel to 1.17.


Re: NaninovelInventory c# compile error in Unity

Posted: 08 Jul 2022 11:43
by TuTlo

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