Tag: C#
All the articles with the tag "C#".
Installing Newtonsoft Json: The Version Field Is Meant to Be Empty
Following an install guide for com.unity.nuget.newtonsoft-json, the version field stopped me. Typing 3.0.1 and then hitting Update is two steps you don't need — and 3.0.1 happens to predate the IL2CPP fixes.
The Point of Generate C# Class Is SetCallbacks
A 2024 walkthrough of the Input System — from installation to three ways of driving it — checked against the current docs. All three of its samples carry the same dead conditional, and the generated class never uses the one feature that justifies generating it.
Play Time Is a TimeSpan, Not a DateTime
I clipped a current-time utility while trying to put a time-attack run timer on screen, but the type I needed wasn't that one. The type for elapsed time, the clock to read, and the format string rules are all different.
isGrounded Isn't a Sensor — It's a Record of the Last Move
I checked a post about replacing a misbehaving isGrounded with a raycast against the current docs. The symptom and the fix are both real, but the docs put the cause somewhere else — and one number in the fix is far more generous than intended.