Page 1 of 1

Yarn?

Posted: Wed Jun 01, 2022 10:15 am
by HawkX
One of my programmer asked me last night about this :


"
Hmm... my Unity just crashed and now it's throwing errors relating to Yarn.

The type or namespace name 'Compiler' does not exist in the namespace 'Yarn'

I haven't pulled any changes since we last spoke either, any idea?
"

We do not use "yarn" nor do i even know what it is really :)

I saw by doing a search in our code there are reference to it in the Dialogue System...
yarn.png
yarn.png (15.76 KiB) Viewed 499 times
Any idea what is happening or why? :)

I have the project opened and do not have any issue which makes it weirder...

Re: Yarn?

Posted: Wed Jun 01, 2022 10:40 am
by Tony Li
Hi,

Your programmer must have accidentally ticked the Dialogue System Welcome Window's USE_YARN checkbox. This checkbox enables code that relies on a third party asset called Yarn Spinner. Since your project doesn't have Yarn Spinner, the code isn't able to compile.

To fix this, select menu item Edit > Project Settings. In the Player > Other Settings section, remove USE_YARN from the Scripting Define Symbols.

Re: Yarn?

Posted: Wed Jun 01, 2022 11:09 am
by HawkX
Awesome! thanks so much (as always) for being so quick and amazing to figure everything out! :)

I'll let him know (he is in Europe and is asleep right now)

Have a great day/week! :)

Re: Yarn?

Posted: Wed Jun 01, 2022 11:16 am
by Tony Li
Happy to help. Have a great day!