mob-sakai / SoftMaskForUGUI

Enhance Unity UI (uGUI) with advanced soft-masking features to create more visually appealing effects!
https://github.com/mob-sakai/SoftMaskForUGUI
MIT License
1.98k stars 262 forks source link

When building with Vulkan and Landscape Orientation, SoftMask does not work on the device. #171

Closed Yunday-dev closed 1 month ago

Yunday-dev commented 1 month ago

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

[It works correctly in Device with Portrait orientation] Protrait

[It does not works in Device with Landscape orientation] Landscape

However, SoftMask works correctly when building with OpenGLES3 and Vulkan in that order. ProtraitCorrectly

To Reproduce I build with Vulkan and OpenGLES3 in that order, as shown in the image below.

image

And I set the Orientation to Landscape. image

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

Environment (please complete the following information):

mob-sakai commented 1 month ago

Thank you for your reporting!

mob-sakai commented 1 month ago

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?

repos

mob-sakai commented 1 month ago

The issue is reproduced when building with the following settings:

@Yunday-dev If Valkan Settings > Apply display rotation during rendering is disabled, does it fix the problem?

mob-sakai commented 1 month ago

I have found the page I need. https://docs.unity3d.com/Manual/vulkan-swapchain-pre-rotation.html

Yunday-dev commented 1 month ago

The issue is reproduced when building with the following settings:

  • Unity 2022.3.18f1, Android
  • For Graphics APIs, prioritize Valkan
  • 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.

Yunday-dev commented 1 month ago

I have found the page I need. https://docs.unity3d.com/Manual/vulkan-swapchain-pre-rotation.html

It works! Thank you very much.

github-actions[bot] commented 1 month ago

: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: