GitXplorerGitXplorer
K

UnityCSharpier

public
6 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
15c23e157f49d37986dbc8759baf2126c28bb2ed

tag: v1.1.18

committed 9 months ago
Verified
ec9bbd39bb81eae214aa19d99dd139e5915b7574

ci: restore test-npm/npm matrix parameters for npmjs (ci/restore-npmjs-registry) [#35]

KKageKirin committed 9 months ago
Unverified
1f66ecf3a448515dc5a9a22f0c7dbef0b7b3e6ae

ci: restore parameters for 'npmjs' from 'npm' job matrix in 'publish' workflow

committed 9 months ago
Unverified
82b12fa14918ed8d00943de213f7efd927926353

ci: restore parameters for 'npmjs' from 'test-npm' job matrix in 'publish' workflow

committed 9 months ago
Unverified
a59a3fb20d2bf6ed4bd73f63a1afdf5b9a6b656a

ci: restore parameters for 'npmjs' from 'test-npm' job matrix in 'build-ci' workflow

committed 9 months ago
Unverified
f5aa0b4ffe8e8d7f0e8c925a682e3657a8441d4c

ci: restore parameters for 'npmjs' from 'test-npm' job matrix in 'build-pr' workflow

committed 9 months ago

README

The README file for this repository.

CSharpier for Unity

CSharpier logo

A Unity Editor extension to run dotnet csharpier on changed C# source files in /Assets before compiling them. C# source files inside the /Packages folder are not getting touched, as they might not writable.

⚡ Getting Started

CSharpier for Unity requires CSharpier to be installed.

Given a valid .NET installation, this can be done on the command line with:

dotnet tool install -g csharpier

🔧 Add OpenUPM registry

The following registry must be added to Unity's Packages/manifest.json .scopedRegistries[]:

{
    "name": "OpenUPM",
    "url": "https://package.openupm.com",
    "scopes": [
        "com.kagekirin"
    ]
}

🔨 Add package to project

Add com.kagekirin.unitycsharpier to the Packages/manifest.json .dependencies{}:

"dependencies": {
    "com.kagekirin.unitycsharpier": "1.1.16",
}

▶ Running and Settings

CSharpier settings

The only important setting to configure is the execution path for dotnet-csharpier, which can be done automatically in the Project Settings > CSharpier menu.

CSharpier's formatting behaviour can be configured through the following files located at the root of your Unity project:

  • .csharpierignore: which defines which files/patterns to ignore (or not ignore)
  • .csharpierrc.yaml: which defines settings such as characters per line, tab width, and usage of tab character.

NOTE: the .csharpierignore displayed in the menu is currently read-only, in such that changes are NOT reflected back to the file.

🤝 Collaborate with My Project

Please refer to COLLABORATION.md