Tag: Unity
All the articles with the tag "Unity".
OverlapCapsule's point0 and point1 Are Not the Capsule's Ends
The docs call point0 'the center of the sphere at the start of the capsule.' That's the center of the end cap, not the tip. Read it as the tip and your capsule grows by twice the radius.
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.