Skip to content

Style Guide

Oliver edited this page Nov 17, 2021 · 5 revisions

Script Names: Same as the Class name

Class Names: CapitalCamelCase

Variable/Property Names: camelCase

Function Names: CapitalCamelCase


Serialized Field indicator should come on the line before the class member

// acceptable
[SerializeField]
private string hello = "world!";

// unacceptable
[SerializeField] private string hello = "world!";

Indentation: Tabs

Bracket Placement: No Newlines

Documentation:

  • Add caveats to function docs
  • Comment the code within reason
  • Don't use prefixes/suffixes when naming

Line Length:

  • Soft Max: 80 characters
  • Hard Max: 100 characters
Clone this wiki locally