Kanda SDK 0.6.0
|
We follow Unity conventions for our package structure, with some specific organizational patterns for scripts. This structure is flexible and can be adapted as needed for specific packages or features, while still maintaining the overall organization principles.
Runtime/
: Main runtime codeEditor/
: Editor-specific codeTests/
:Runtime/
: Runtime testsEditor/
: Editor testsDocumentation~/
: Documentation filesSamples~/
: Example projects or scenesREADME.md
: Documentation entrypointCHANGELOG.md
: Version historypackage.json
: Unity package manifestbitbucket-pipelines.yml
: CI pipeline configuration (defines automated build, test, and deployment processes)Components
, Systems
)PlayerController.cs
, NetworkSystem.cs
)Scripts are organized by domain, feature, and type:
This approach promotes keeping related scripts in close proximity, while retaining some separation of data models from functionality, as data models are typically used across multiple scripts in their domain.
For Entities or Netcode-based features:
For traditional managed code:
The tests folder generally mirrors the structure of the main package.
This structure promotes clarity and scalability while adhering to Unity package conventions. It can be adapted as needed for specific package requirements while maintaining overall organization principles.