EvilMindDevs / hms-unity-plugin

The HMS Unity Plugin makes it easy to include Huawei Mobile Services into Unity-based games. Authentication, in-app purchases, push alerts, ads, and interaction with gaming services are just a few of the basic capabilities that this formidable tool makes available to your applications.
https://evilminddevs.gitbook.io/hms-unity-plugin/
311 stars 43 forks source link

IAP Service force the screen orientation to be `LandscapeLeft` #505

Open lxwgogogo opened 2 months ago

lxwgogogo commented 2 months ago

Describe the bug & problem A clear and concise description of what the problem is. After enable IAP, the game is forced to be LandscapeLeft, which is very weird. My game was always in portrait mode, but now Huawei IAP force it to be LandscapeLeft. Could I just override it to Portrait in the code? Or Huawei IAP has some feature requires Landscape mode?

github-actions[bot] commented 2 months ago

Thank you for reporting this issue/advice.

We will get back to you as soon as possible.
Would you like to star our plugin to support us? :sparkles:

Andronovo-bit commented 2 months ago

Hello, @lxwgogogo.

Did you try it on your own scene or on our demo scene ?

If you tried our deme scene, yes, it forcing it to be LandScapeLeft because scene is landscape. But if you have created your own scene, LandScapeLeft should not force it to be.

lxwgogogo commented 2 months ago

I'm on my own scene. I defined a HuaweiIAPManager in one of my script on a gameobject in my scene.

Andronovo-bit commented 2 months ago

You don't supposed to face any problem, if you did like that. IAP works potrait mode, normally.

Can you give screen record when you are faced this problem ?