If you want to fork or contribute to GoCS, you can use the following setup to create a development project for the package.
- Clone the GoCS repo or its fork inside an empty directory, for example
gocs_package
- Create a new empty Unity project, for example
gocs_project
- Create symlinks to make Unity recompile modifications instantly:
- from
gocs_package
togocs_project/Packages/gocs
- from
gocs_package/Samples~
togocs_project/Assets/Samples
- from
On Windows, you can use Link Shell Extension to create a symlink. Make sure to drop the link as a Junction.
On Mac, you can use the terminal:
ln -s /path/to/gocs_package/ /path/to/gocs_project/Packages/gocs/
ln -s /path/to/gocs_package/Samples~/ /path/to/gocs_project/Assets/Samples/
GoCS follows a coding style similar to Unity's:
- Public fields and properties:
camelCase
- Private backing fields:
_camelCase
- Public methods:
PascalCase
- Constants:
PascalCase
- Allman bracing style
- Tabs for indentation
- 1 blank line between each member
- 3 blank lines between each
#region
- Implicit
var
typing when possible