Help! I detonated my project by accidentally checking "Use Yarn"

Announcements, support questions, and discussion for the Dialogue System.
Post Reply
Pinwizkid
Posts: 4
Joined: Tue Jun 14, 2022 7:18 pm

Help! I detonated my project by accidentally checking "Use Yarn"

Post by Pinwizkid »

Without realizing it I clicked on the inspector with the welcome tab open and accidentally clicked the "use yarn" checkbox and now my project is throwing null reference exception errors for basically all of my scripts. I've unchecked the box but it appears the damage is done. Any idea how to fix this?
User avatar
Tony Li
Posts: 22144
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help! I detonated my project by accidentally checking "Use Yarn"

Post by Tony Li »

Hi,

Select menu item Edit > Project Settings. In Player > Other Settings > Scripting Define Symbols, remove USE_YARN.
Pinwizkid
Posts: 4
Joined: Tue Jun 14, 2022 7:18 pm

Re: Help! I detonated my project by accidentally checking "Use Yarn"

Post by Pinwizkid »

Thanks managed to fix it. Toggling that setting somehow cleared a variable from the inspector on the player game object, causing the player to not spawn and thus caused a cascade of other errors.
User avatar
Tony Li
Posts: 22144
Joined: Thu Jul 18, 2013 1:27 pm

Re: Help! I detonated my project by accidentally checking "Use Yarn"

Post by Tony Li »

Happy to help! I'm glad that fixed it.
Post Reply