Reference assemblies for framework “.NETFramework,Version=v4.7.1” were not found

Tried the steps mentioned here, did not resolve the error. Had to do change the omnisharp.useGlobalMono option to always. This worked for C# extension for VS Code=1.23.2. Source: Reddit Post Your error output tells me that you’re using the official C# extension for VS Code. The latest version of said extension, 1.23.2, has this to … Read more

Why is Unity ignoring the initialized value of a non-static public field?

The double-edged sword of serialization Unity wants to make things easier for everyone, including people with limited coding knowledge (beginners, designers). To help them out, Unity displays data in the inspector. This allows the coder to code and the designer to design by tweaking the values without opening MonoDevelop/an IDE. There are two ways to … Read more

Why float.Epsilon and not zero?

Actually, using float.Epsilon may not make any significant difference here. float.Epsilon is the smallest possible float greater than zero (roughly 1.401298E-45), which does not mean that it’s the smallest difference between any two arbitrary floats. Since floating-point math is imprecise, the difference between two seemingly equal numbers can be much greater than float.Epsilon. For example: … Read more

Why should I use SerializeField?

Why and when should I use [SerializeField]? Using the SerializeField attribute causes Unity to serialize any private variable. This doesn’t apply to static variables and properties in C#. You use the SerializeField attribute when you need your variable to be private but also want it to show up in the Editor. For example, this wouldn’t … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)