Skip to content

Latest commit

 

History

History
31 lines (20 loc) · 967 Bytes

style-guidelines.md

File metadata and controls

31 lines (20 loc) · 967 Bytes

Coding Guidelines

Generally we follow the dotnet C# style and code conventions as described microsoft dotnet documentation you can use this as a reference.

However there are a few different or Unity specific conventions we use in our modules that you will find described below.

Private class fields

Similar to the dotnet C# conventions we use Camel case for private fields however we do not use the _ prefix and as such we encourage you to do the same to keep the code consistent, see below for an example.

public class Avatar
{
    private string avatarName;
}

Constant class fields

For constant class fields our convention is to use SCREAMING_SNAKE_CASE.

public class Avatar
{
    public const string AVATAR_NAME;
}