Tag: C#
All the articles with the tag "C#".
Create an asmdef and Assembly-CSharp Goes Dark
I clipped the assembly definition files doc and it's the 2017.4 edition. Its account of one-directional dependency is right, but it never says the reverse direction is forbidden. That's the actual reason behind the 'all scripts or none' recommendation.
The First Example Compares `pizza`, Not `type`
A 2016 write-up following Head First through the factory patterns. The concepts are textbook-correct, but all three code sections are broken — and they break the same way. Take the type as a string and there's nothing for the compiler to see.
Bounciness and Friction Belong to a Pair, Not to an Object
A 2020 learning log that turns Rigidbody and Physics Material dials and films the result. The observations are good, but two puzzles are left open. Both resolve in the same place: bounciness and friction aren't one object's values, they're made by the two colliders in contact together.
IsConnected Is Looking at Connecting
A tutorial that shows the whole thing, from a signaling server to sending a camera feed. But IsConnected compares against Connecting, so the Disconnect button dies the moment the connection is actually established. RemoveTrack and OnNegotiationNeeded each have a hole too.