Releases: Haruma-K/UnityScreenNavigator
v1.7.5
v1.7.4
v1.7.3
v1.7.2
- Refactored PageContainer, ModalContainer, and SheetContainer
- Streamlined the flow of operations such as Push and Pop
- Fixed an issue where certain termination processes might not be called when dismissing multiple Pages or Modals at once
- PageContainer, ModalContainer, SheetContainerをリファクタリング
- PushやPopなどの処理の流れを整理
- 複数の Page や Modal を同時に破棄した際に、終了処理が一部漏れることがあった問題を修正
v1.7.1
v1.7.0
Add the Modal Backdrop Strategy.
You can now change the behavior of the modal backdrop as follows by changing the Backdrop Strategy from the ModalContainer Inspector.
| Setting Value | Description |
|---|---|
| Generate Per Modal | Generate a backdrop for each modal |
| Only First Backdrop | Generate a backdrop only for the first modal, and do not add a backdrop for the second and subsequent ones |
| Change Order Before Animation | Change the rendering order of the first generated backdrop and reuse it when generating the second modal (change the rendering order before the animation) |
| Change Order After Animation | Change the rendering order of the first generated backdrop and reuse it when generating the second modal (change the rendering order after the animation) |
Modal Backdrop Strategyを追加
ModalContainerの Inspector から Backdrop Strategy を変更することで、モーダルの背景の挙動を以下の通り変更できます。
| 設定値 | 説明 |
|---|---|
| Generate Per Modal | モーダルごとに背景を生成する |
| Only First Backdrop | 最初のモーダルにだけ背景を生成し、2個目以降は背景をつけない |
| Change Order Before Animation | 2個目のモーダルを生成したときに最初に生成した背景の描画順を変更して再利用する(アニメーションの前に描画順を変更) |
| Change Order After Animation | 2個目のモーダルを生成したときに最初に生成した背景の描画順を変更して再利用する(アニメーションの後に描画順を変更) |
v1.6.7
v1.6.6
Added an option to perform Cleanup() when Destroy() is called on Pages, Sheets or Modals. This option is enabled by default. If you want to revert to the original behavior, uncheck `Call Cleanup When Destroy' in the Unity Screen Navigator Settings.
Warning
Cleanup() will not wait if it is called from Destroy() because `Destroy()' is a synchronous method.
PageやSheetやModalのDestroy()が呼ばれたときにCleanup()を行うオプションを追加しました。
このオプションはデフォルトで有効です。
元の挙動に戻したい場合、Unity Screen Navigator Settingsの「Call Cleanup When Destroy」のチェックを外してください。
Warning
Destroy()は同期メソッドなのでCleanup()がDestroy()から呼ばれる場合には待機されません
