您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
 
 
 
 
 
 

1.5 KiB

UI Widgets

Development

  1. Start Unity(2018.3 or above), create a local empty project.

  2. 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

  1. Use JetBrains Rider

  2. 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

  1. 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/"

  2. 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"

  3. 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.

REF: https://www.jetbrains.com/help/rider/Sharing_Configuration_Options.html