📦

UPM Release Notes - 2020.2 Fixes

2020/12/08に公開

はじめに

この記事は、 2020年版 Unity Package Manager の Release Notes 全部抜く の部分記事です。

Unity 2020.2 での Unity Package Manager に関する Fixes を詳細を記しています。

Fixes

Light モードに於ける Preview と Verified のタグ色を法的なコントラスト要件に準拠

Adjusted package 'Preview' and 'Verified' tag colors in Light mode to meet minimum legal contrast requirements.

Legal Contrast Requirements ってのはこの辺の規約のコトを指してるのかな?

アクセシビリティ的なお話し?

関数のシグネチャとコメントを変更

Changed function signature and comments.

いや、どう変えたのか教えてくれ…。なんもわからん…。

UIElements の VisualSplitter を利用

Changed Package Manager window to use UIElements VisualSplitter instead of custom splitter class. This makes the window behave more consistently with other application windows with a split view, i.e. Preferences Window. Split view resizing with window resizing now works in Package Manager window.

分割ウィンドウ周りの対応が良くなる的な感じっぽい。

というか、元々 UIElements で構築されていたんですね。知らなかった。

AssetDatabase のプロクシを作り、テスト環境で AssetDatabase の状態に依存しないようにする

Created a proxy for AssetDatabase, such that in the test environment we never rely on the state of the real AssetDatabase.

テスタビリティ高まる。

というか、これは Package Manager 関連の Issue なのか…?

package.json が更新されても Samples が更新されない問題を修正

Fixed a issue where samples for a package were not refreshed after modifying in package.json. (1233444)

毎回消して入れ直すとかしないとダメだったから地味に面倒だったんだけど、改善されて嬉しい。

Sample をリストする際に null エラーが出ることがある問題を修正

Fixed a possible null error in console when listing samples.

なるほど。

パッケージを固める際に .npmignore が無いと .gitignore の内容を読まなくなっていた問題を修正

Fixed an issue in the UnityEngine.PackageManager.Client.Pack method did not properly use the contents of .gitignore when .npmignore was missing.

2019.3 にもありましたね。

パッケージを固める際に権限エラーが出ることがあった問題を修正

Fixed an issue in the UnityEngine.PackageManager.Client.Pack method which could sometimes result in file permission issues.

2019.3 にもありましたね。

削除したカスタムパッケージがプロジェクトウィンドウに表示されっぱなしな問題を修正

Fixed an issue where a deleted custom package still was displayed in project window. (1266789)

「あれ!?消したのに???」ってなるやーつ。

リクエスト失敗時のラベルが「ホスト未定義」となっていた問題を修正

Fixed an issue where a network requests sometime mislabeling the host as undefined when unsuccessful.

2019.3 にもありましたね。

Asset Store パッケージのダウンロード進捗の UX に一貫性が無かった問題を修正

Fixed an issue where Asset Store package download progress tracking UX was inconsistent in the Package Manager window. (1272970)

どう一貫性がなかったのかは不明。

Asset Store でダウンロードできないハズのアセットがダウンロード・インポートできていた問題を修正

Fixed an issue where download and import was enabled for an asset that was not available on the Asset Store.

人に依っては「改悪だ!」と感じてしまうかも?

Registry URL に不要なスラッシュが入っていると認証が無視される問題を修正

Fixed an issue where npm authentication configuration was ignored when there was an extraneous slash at the end of the configured registry URL.

2019.3 にもありましたね。

Scoped Registries 内のプレビューパッケージがフィルタされてしまう問題を修正

Fixed an issue where preview packages from Scoped Registries where filtered out.

そんな問題あったんだ。

Samples の挙動が色々おかしかった問題を修正

Fixed an issue where samples showed randomly when package was not installed and Sample.FindByPackage API did not work if the package manager window was not open.

以下の問題が修正されたそうな。

  • 未インストールパッケージの Samples がランダム表示される
  • Window を開いていないと Sample.FindByPackage() が動かない

Linux で起動失敗ウィンドウの診断が診断ダイアログを表示しない問題を修正

Fixed an issue where the Diagnose button in the critical startup failure dialog would not launch a diagnostics window on Linux.

診断ダイアログ使ったことない…。

同じ Git パッケージを二度追加できなかった問題を修正

Fixed an issue where the same git package twice could not be added twice. (1263238)

二回追加できなくて良いのでは…?そういうことじゃないのかな?

UPM の起動に割り当てられた10秒よりも多く掛かることがある問題を修正

Fixed an issue where the Unity Package Manager could take more time to start up than the 10 seconds allotted by Unity.

2019.3 にもありました。

Registry に接続できないときに UnityEditor.PackageManager.Client.GetAllPackageInfo() がエラーを吐かずに空のリストを返す問題を修正

Fixed an issue where the Client.GetAllPackageInfo method would silence errors and return an empty list of packages when there were registry reachability issues.

2019.3 にもありました。

グループ名ラベルのツールチップが表示されない問題を修正

Fixed an issue where tooltip doesn't show up for the GroupName label.

ツールチップ出てたのか。メッチャ長い時とかに出るのかな?

パッケージ名に改行とかが入っている場合に PackageManager.Client.Remove が処理し続ける問題を修正

Fixed an issue where PackageManager.Client.Remove request was still proceeding after input package name contained unsupported characters like carriage return or line feed failed validation.

意地の悪いパッケージ名を付けるとバグるって感じかな?

手動更新した後の検索クエリの問題を修正

Fixed an issue with search query after manual refresh.

どんな問題かは不明。

Scoped Registries 設定に於ける null エラーを修正

Fixed an null error issue in Scoped Registries Settings.

フィールドが空だったりしたら起きるとかかな?

4K ディスプレイを使っているとトグルボタンの重ね合わせがおかしくなる問題を修正

Fixed and issue with label superposition of the toggle button when using 4k screen. (1243974)

時代は 8K !(ぇ

低速回線時に於ける Asset Store パッケージの表示に関する問題を修正

Fixed AssetStore package display issue with poor internet connection.

どんな問題かは不明。

静的コード解析によりレポートされた AssetStorePackage の不具合を修正

Fixed defect in AssetStorePackage reported by static code analysis. (1237761)

どんな不具合かは不明。

静的コード解析によりレポートされた AssetStoreProductInfo の不具合を修正

Fixed defect in AssetStoreProductInfo reported by static code analysis. (1237762)

どんな不具合かは不明。

My Assets を開く時に 'user not logged in' エラーが表示されることがある問題を修正

Fixed issue where 'user not logged in' error sometimes occurs on opening Unity Editor with Package Manager window opened to My Assets.

sometimes が気になる…。

Scoped Registries 設定にエラーがあると UI が空のリストを表示する問題を修正

Fixed issue where Package Manager UI shows empty list when there's an error in ScopedRegistry settings.

設定ミスると巻き込んで使えなくなるのは不便だもんね。

エラーメッセージが長すぎるとダイアログボックスが空になる問題を修正

Fixed Package Manager dialog box could be empty if the error message was too long.

長すぎると諦めちゃう的な。

Package データベースに於ける潜在的な null エラーを修正

Fixed potential null error in Package Database.

Package Database とは…?

Library/ の下とかにある何かなのかな?

パッケージ開発者の説明文のスクロールを修正

Fixed scroll for package dev description.

長いと上手くスクロールされてなかったとかかな?

Preview Packages ボタンのドロップダウンがぼやけていたのを修正

Fixed the blurry dropdown button for preview packages.

2019.3 にもありましたね。

Charles Proxy 実行中に Window で Asset Store ページを開くと ArgumentException が throw されていた問題を修正

Fixed the issue where ArgumentException will be thrown when opening Asset Store page in Package Manager window when Charles Proxy is running.

Asset Store Moved 的なページが読めなかったとかかな?

package.json が更新されても UI が更新されない問題を修正

Fixed the issue where Packman UI won't refresh on package.json update.

2019.3 にもありましたね。

パッケージ読み込みバーに於けるパッケージテキストと Load Next の重なりを修正

Fixed the superposition of the text packages and load next in package load bar.

重ね合わせのことを superposition って言うのね。

Markdown に関連付けされたアプリケーションがない場合にオフラインドキュメントが開けない問題を修正

Fixed when viewing offline docs not working if there is no program associated to markdown files in the operation system.

.md を表示するコトが出来ない。

PackageInfo.FindForAssetPath() のパフォーマンスオーバーヘッドを修正

Fixed PackageInfo.FindForAssetPath performance overhead. (1221526)

この手の API はそもそもオーバーヘッド高そうだからなぁ…。

インスペクタでパッケージをグレーアウト

Grey out package in inspector.

2020.1 との違いが分からん…。

DownloadImageAsync メソッドを AssetStoreCache クラスに移動

Internal changes, moved DownloadImageAsync function into AssetStoreCache class so it is with the Load and Save Image functions.

内部的な変更だそうな。

画像の Load と Save のメソッドを同居させた的な話しらしい。

ダウンロード進捗バーを Window のサイズに併せる

Match download bar to windows size.

2019.3 にもありましたね。

npm の認証情報の保管場所をシステムグローバルからユーザ設定に移動し、ファイルフォーマットを TOML に変更

Moved storage of npm credentials from system/global configuration to user configuration. The file format was also changed to TOML.

2019.3 にもありましたね。

開発中のカスタムパッケージを削除しても UI が更新されない問題を修正

Removing a custom package in development was not updated in the UI.

開発中とは言え、大事なコト。

要素が存在する場合に actif 削除ボタンを設定

Set actif remove button when element present.

actif って何…?何かの typo??

Discussion