peterdrake,
@peterdrake@qoto.org avatar

Capitalization in C# / Unity is an infuriating minefield.

Microsoft and Unity offer slightly different standards and then don't consistently follow them.

There is no entry for "capitalization" in the index for the 1000-page C# 10 in a Nutshell. There is some advice under "identifiers", but it differs from what is given by the previous two sources.

Many sources want to capitalize private and public fields differently. Why would you do that?!

Unity adds spaces and changes the capitalization when displaying class and field names.

If you refactor a name, Unity bloats your code with a FormerlySerializedAs attribute.

#GameDev #unity #unity3d #csharp

  • All
  • Subscribed
  • Moderated
  • Favorites
  • gamedev
  • ngwrru68w68
  • rosin
  • GTA5RPClips
  • osvaldo12
  • love
  • Youngstown
  • slotface
  • khanakhh
  • everett
  • kavyap
  • mdbf
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • megavids
  • InstantRegret
  • normalnudes
  • tacticalgear
  • cubers
  • ethstaker
  • modclub
  • cisconetworking
  • Durango
  • anitta
  • Leos
  • tester
  • provamag3
  • JUstTest
  • All magazines