Skip to main content

Posts

Fix, incompatibility between color space and current settings. in order to build player

  Go to File> Build> Player Settings> Other Settings> Color Space > Change the option from Linear to Gamma. This has because if you have graphics rendered as a Deferred or Forward. Gamma selection will resolve the issue.

Preprocessor directives must appear as the first non-whitespace character on a line

 Preprocessor directives must appear as the first non-whitespace character on a line Here are some solutions collected. 1. event, you must have a method with the same name declared in the code behind page like below, protected void #btnLogin_Click(object sender, EventArgs e) { } But in C# cs files, as the  error  explains preprocessor directives ( # ) must appear as the first non-whitespace character that's why the error happens. Solution would be to adhere to proper naming conventions. See  here . 2. Preprocessor directives start with  # . You have a trailing  #  in line 10. It looks like you use Visual Studio which should mark the line in red. Also the error should tell you which line looks wrong. Edit: You probably just opened the file in Visual Studio, which will not load any assemblies. Please open your C# project from Unity, right-click in the project explorer and choose "open C# project" or similar Honestly this post should be removed for low effort, a simple Goo

No countries or regions have been selected for this track. Add at least one country or region to roll out this release.

Fix error: No countries or regions have been selected for this track. Add at least one country or region to roll out this release.     solution: Go to: Production > Countries / Regions Then add the countries you want.   Watch video:     .

Assembly has reference to non-existent assembly 'Unity.ugui'

 Assembly has reference to non-existent assembly 'Unity.ugui' (Packages/com.unity.textmeshpro/Tests/Editor/Unity.TextMeshPro.Editor.Tests.asmdef)   This is the error i had when i import a package to an empty unity project. Unity version was 2018.3.0.f2.     Solution is simple i think.  Goto:  Help -> Reset packages to default.       Click yes      It resolved my issue.   Please write in comment if you solved it with other solution, others can get help :) also subscribe my blog