Closed Yunday-dev closed 1 month ago
Thank you for your reporting!
I would like to know more about this issue.
Could you please attach a minimal project (included Assets
, Packages
and ProjectSettings
directories) that reproduces the issue?
The issue is reproduced when building with the following settings:
Graphics APIs
, prioritize Valkan
Valkan Settings > Apply display rotation during rendering
@Yunday-dev
If Valkan Settings > Apply display rotation during rendering
is disabled, does it fix the problem?
I have found the page I need. https://docs.unity3d.com/Manual/vulkan-swapchain-pre-rotation.html
The issue is reproduced when building with the following settings:
- Unity 2022.3.18f1, Android
- For
Graphics APIs
, prioritizeValkan
- Enable
Valkan Settings > Apply display rotation during rendering
@Yunday-dev If
Valkan Settings > Apply display rotation during rendering
is disabled, does it fix the problem?
Disabling 'Vulkan Settings > Apply display rotation during rendering' prevents the issue.
I have found the page I need. https://docs.unity3d.com/Manual/vulkan-swapchain-pre-rotation.html
It works! Thank you very much.
:tada: This issue has been resolved in version 2.1.0 :tada:
The release is available on GitHub release
Your semantic-release bot :package::rocket:
NOTE: Your issue may already be reported! Please search on the issue tracker before creating one.
Describe the bug When building with Vulkan and OpenGLES3 in that order as Graphics APIs and Landscape orientation, SoftMask does not work. However, It works correctly in the Editor and on the device in Portrait orientation.
[It works correctly on the Editor]![image](https://github.com/user-attachments/assets/54038c0b-c753-449c-b7c7-f27f81d701f5)
[It works correctly in Device with Portrait orientation]![Protrait](https://github.com/user-attachments/assets/57a3fa47-ee85-4c1e-9a91-0a63d5f63e41)
[It does not works in Device with Landscape orientation]![Landscape](https://github.com/user-attachments/assets/b93121fa-bf74-4ac4-b14d-8237d758f273)
However, SoftMask works correctly when building with OpenGLES3 and Vulkan in that order.![ProtraitCorrectly](https://github.com/user-attachments/assets/06fabaa1-43d2-4e7c-bf63-11390462f416)
To Reproduce I build with Vulkan and OpenGLES3 in that order, as shown in the image below.
And I set the Orientation to Landscape.![image](https://github.com/user-attachments/assets/7065e4b4-3918-4989-8f53-3951e447a1a5)
I build.
Expected behavior SoftMask should work correctly on the device even when building with Vulkan and setting the Orientation to Landscape.
Screenshots It works correctly in Portrait orientation but does not work correctly in Landscape orientation.![trainsition_portrait_to_landscape](https://github.com/user-attachments/assets/c4008359-d1af-4802-8342-af3ab3d6da54)
Environment (please complete the following information):