hms-unity-plugin icon indicating copy to clipboard operation
hms-unity-plugin copied to clipboard

IAP Service force the screen orientation to be `LandscapeLeft`

Open lxwgogogo opened this issue 1 year ago • 4 comments

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?

lxwgogogo avatar Jul 17 '24 03:07 lxwgogogo

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:

github-actions[bot] avatar Jul 17 '24 03:07 github-actions[bot]

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.

Andronovo-bit avatar Jul 17 '24 07:07 Andronovo-bit

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

lxwgogogo avatar Jul 18 '24 01:07 lxwgogogo

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 ?

Andronovo-bit avatar Jul 18 '24 06:07 Andronovo-bit

Thank you for using our repository! We're glad we could help solve your issue. If you found our repository helpful, please consider giving us a star ⭐ on GitHub: https://github.com/EvilMindDevs/hms-unity-plugin

Your support helps us continue to improve our repository and provide valuable resources for others.

github-actions[bot] avatar Nov 04 '24 06:11 github-actions[bot]