Page 1 of 1

Errors after enabling Yarn support

Posted: Mon Jun 05, 2023 7:35 am
by Adeoon
So, I have assembly errors after enabling Yarn support. How can I get rid of them? :)

Re: Errors after enabling Yarn support

Posted: Mon Jun 05, 2023 7:53 am
by Tony Li
Hi,

Are you using Yarn 1 or Yarn 2? There are some required setup steps for each.

Re: Errors after enabling Yarn support

Posted: Wed Jun 07, 2023 8:57 am
by Adeoon
Now I have these :|| I am using Yarn 2

Re: Errors after enabling Yarn support

Posted: Wed Jun 07, 2023 11:50 am
by Tony Li
Hi,

Is the Yarn 1 checkbox ticked also? Only one or the other should be ticked. Select menu item Edit > Project Settings. In the Player section, scroll down to Other Settings > Scripting Define Symbols and remove the USE_YARN symbol. Then click Accept.

Re: Errors after enabling Yarn support

Posted: Thu Jun 08, 2023 8:27 am
by Adeoon
Ok it helped with these, but I have another haha. With InputSystem, should I add Inputsystem assembly somewhere or what?

Re: Errors after enabling Yarn support

Posted: Thu Jun 08, 2023 9:33 am
by Tony Li
Hi,

Yes, since you're using assembly definitions now, you need to add a reference to the InputSystem asmdef to these 4 asmdefs: PixelCrushers, PixelCrushersEditor, DialogueSystem, and DialogueSystemEditor. If you're using TextMesh Pro and you haven't already added references to the TextMeshPro asmdef, please do that, too.