-
Notifications
You must be signed in to change notification settings - Fork 40
AASのsortOrderをLayoutRuleEditorに反映 #83
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Assets/SmartAddresser/Editor/Core/Tools/Addresser/LayoutRuleEditor/LayoutRuleEditorPresenter.cs
Show resolved
Hide resolved
Haruma-K
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Layout Viewerの方も対応が必要そうかも?
- 優先度は低いですが、Layout Rule Editor を開いた状態でソート順を変更した時に、その変更を Layout Rule Editor に反映させる対応はできそうでしょうか
- Hackyな感じになるならやらなくてもいいかなと思いつつ
qua-iy
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
自分の観点としてはapproveしますが、SmartAddresserの影響範囲という観点で @Haruma-K さんのレビュー部分を見ていただければと
これはすでに出来てる・・と思ったけど、初回だけ反映されないケースがあるみたいでした。 ただLayoutRuleEditorは更新のたびにのOnModificationコールバックを登録しなおしているので、2回目以降は登録順が後ろになってうまくいくようです。 回避するとしたら・・・ModificationEvent.GroupMovedイベントだったらEditorApplication.delayCallで遅延更新するとかでしょうか? |
Haruma-K
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
一点コメントしましたが、それ以外は問題ないのでApproveします
| return; | ||
| } | ||
|
|
||
| var addressableAssetSettings = AddressableAssetSettingsDefaultObject.Settings; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
こちらも
#if AAS_SORT_ORDER
が必要そうでしょうか?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
失礼しました!#ifを追加して、sortOrderのないバージョンでエラーにならないことを再確認しました
こちらでマージしますね
AAS側で保存されているAssetGroup並び順をLayoutRuleEditorにも反映します。
動作確認
AddressableAssetGroupSortSettingsが追加される境界バージョンで動作確認しました