Tag: C#
All the articles with the tag "C#".
[MenuItem] Belongs in an Editor Folder, and a MonoBehaviour Can't Go There
I checked a 2021 round-up of eighteen attributes against the current docs. Most of it holds, but one example asks for two incompatible things, one is something the docs tell you not to use, and one guards less than it looks like it does.
Release First and Completed Gets an Invalidated Handle
I checked a 2023 write-up of Addressables against the current docs. The example's release ordering is wrong, and the duplicate-key problem the author spent hours on is one line in the manual. Lining it up with Unreal's soft references — where I started — makes that release problem clearer.
OverlapSphere Doesn't Ignore the Ignore Raycast Layer
Same Physics class, different default layer masks for Raycast and OverlapSphere. An object you parked on Ignore Raycast to keep it out of queries still shows up in OverlapSphere.
CrossFade's 0.3f: On One Side It's 0.3 Seconds, on the Other It Isn't
I checked a CrossFade explanation written in 2014. It's correct. But the component you'd actually use today has a method by the same name, and the second argument is in a different unit.