1.6 KiB
Contributing
If you are interested in contributing, here are some ground rules:
Code Style (using JetBrains Rider)
-
Import the Customized Code Cleanup Settings: Open Preferences -> Manage Layers, Choose 'Solution "<YourProjectName>" personal' and Click "Add Layer" ("+") -> "Open Settings File...". and Open the file "UIWidgetCleanupPlugin.DotSettings" under <YourProjectPath>/Packages/com.unity.uiwidgets/"
-
Cleanup Code style using the Customized Code Cleanup Settings: Open Code -> Code Cleanup, Pick a Cleanup scope as you want and Choose "UIWidgets" as the "Code cleanup profile", then click "OK"
-
Refine Code Style Rules: Edit the ".editorconfig" file under <YourProjectPath>/Packages/com.unity.uiwidgets/". Visit https://www.jetbrains.com/help/rider/EditorConfig_Index.html for the detailed.
Generate Code.
Code files ending with ".gen.cs" are auto generated. Follow these steps to generate them:
- Go to scripts Folder and Run npm install:
cd <YourProjectPath>/Packages/com.unity.uiwidgets/scripts~
npm install
- Run the codegen Command:
node uiwidgets-cli.js codegen . generate mixin code
All contributions are subject to the Unity Contribution Agreement(UCA)
By making a pull request, you are confirming agreement to the terms and conditions of the UCA, including that your Contributions are your original creation and that you have complete right and authority to make your Contributions.