GitXplorerGitXplorer
K

UnityCSharpier

public
6 stars
0 forks
0 issues

Commits

List of commits on branch main.
Unverified
2611544cf07b1c04f434392a6a50d990a2f69769

tag: v1.1.17

committed 9 months ago
Verified
3ac81cbd425e1de188df722e3be6145e620bbcfb

ci: replace old CI workflows with new CI system used on my other repos (ci/replace-ci-with-complex-system) [#34]

KKageKirin committed 9 months ago
Unverified
edc63bd3b0d77ffcec97e19316e93f057b61f877

ci: replace npm publishing part from 'release' workflow with 'publish' workflow and refactor 'release' workflow to create github releases

committed 9 months ago
Unverified
e6757ffb9c504391e9d5f8df78a47f56bf00951f

ci: replace workflow 'tagonmergepr' with 'build-ci'

committed 9 months ago
Unverified
69e538d01c57ef0c4ca07a50b6fe87ef42dab480

ci: replace workflows 'buildtest' and 'tagtest' with 'build-pr' workflow

committed 9 months ago
Unverified
bf62b52ba2f9bf5ba2fccd454709fa24e0d800b2

ci: add 'npm-prepare-publish' jobaction

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