xingwei.zhu 31e35589 | 6 年前 | |
---|---|---|
Documentation~ | 6 年前 | |
Editor | 6 年前 | |
Runtime | 6 年前 | |
Samples | 6 年前 | |
Tests | 6 年前 | |
scripts | 6 年前 | |
.README - External.md | 6 年前 | |
.editorconfig | 6 年前 | |
.gitignore | 6 年前 | |
.gitlab-ci.yml | 6 年前 | |
.npmignore | 6 年前 | |
CHANGELOG.md | 6 年前 | |
CHANGELOG.md.meta | 6 年前 | |
CONTRIBUTING.md | 6 年前 | |
CONTRIBUTING.md.meta | 6 年前 | |
Editor.meta | 6 年前 | |
LICENSE.md | 6 年前 | |
LICENSE.md.meta | 6 年前 | |
QAReport.md | 6 年前 | |
QAReport.md.meta | 6 年前 | |
README.md | 6 年前 | |
README.md.meta | 6 年前 | |
Runtime.meta | 6 年前 | |
Samples.meta | 6 年前 | |
Tests.meta | 6 年前 | |
Third Party Notices.md | 6 年前 | |
Third Party Notices.md.meta | 6 年前 | |
UIWidgetCleanupPlugin.DotSettings | 6 年前 | |
build.bat | 6 年前 | |
build.bat.meta | 6 年前 | |
build.sh | 6 年前 | |
build.sh.meta | 6 年前 | |
package.json | 6 年前 | |
package.json.meta | 6 年前 | |
scripts.meta | 6 年前 |
README.md
UI Widgets
Development
-
Start Unity(2018.3 or above), create a local empty project.
-
In a console (or terminal) application, go to the newly created project folder, then clone this repo into the packages directory.
cd <YourProjectPath>/Packages git clone https://gitlab.cds.internal.unity3d.com/upm-packages/ui-widgets/com.unity.uiwidgets.git com.unity.uiwidgets
IDE
-
Use JetBrains Rider
-
Open File -> Settings Repository.... Specify Upstream URL as "git@gitlab.cds.internal.unity3d.com:upm-packages/ui-widgets/idea-settings.git" and click "Overwrite Local" or "Merge".
REF: https://www.jetbrains.com/help/idea/sharing-your-ide-settings.html#settings-repository
Code Style Cleanup
-
Import the Customized Code Cleanup Setting: 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 Setting: Open Code -> Code Cleanup, Pick a Cleanup scope as you want and Choose the "UIWidgets" as the "Code cleanup profile", then click "OK"
-
Refine Code Style Rules: Edit the ".editorconfig" file under <YourProjectPath>/Packages/com.unity.uiwidgets/"