UnityRef is currently in early development. Some features may be incomplete and/or not functioning.

UNITYREF

Your Pit Stop For Solving ANYTHING in Unity

editor

[IntelliSense] Fix Broken C# Project Generation and Missing Solutions

Solution

ideeditor scriptingintellisensedeveloper workflow

Unity 2019.4.x - Unity 6.3.x

Published Sat, May 9

Issue

 An inability to generate C# projects or solution files within Unity Editor has been observed. Instead of your project opening in your designated IDE, your script folder is opened directly. Attempts to resolve this by deleting Library and Temp files often fail to restore the connection between your script and the environment.

C# project and solution files are reconstructed by navigating to External Tools, configuring External Script Editor, and selecting Regenerate project files.

Explanation

Resolution for C# project generation issues involves configuring the External Script Editor within Project Settings. The failure to synchronize with an IDE is typically caused by a corrupted internal project state or a mismatch in your External Tools configuration.

  1. Open the Project Settings window by navigating to Edit > Project Settings.
  2. Select the External Tools tab from the left-hand sidebar.
  3. Locate the External Script Editor dropdown and ensure your preferred IDE is selected.
  4. Click the Regenerate project files button to trigger the project reconstruction.

Additional Tips:

  • Update your editor package in the Package Manager to ensure compatibility with Unity 6.
  • Verify that checkboxes for your package types are enabled under the Regenerate project files button.
  • Manually deleting existing .sln and .csproj files from the root folder before clicking Regenerate project files can resolve persistent cache issues.

Related Posts Haven't quite found a solution to your problem? We think these posts might help you.

Content inspired by a Unity discussion post.