Coder Social home page Coder Social logo

surface-duo-sdk-unity-samples's Introduction

page_type name languages products description urlFragment
sample
Surface Duo - Unity SDK samples
csharp
surface-duo
Samples showing how to use the Surface Duo SDK with for Unity game development.
all

Unity Android samples for Surface Duo

Samples for Unity that adapt to the dual-screen display of the Surface Duo.

Download the Surface Duo SDK (which includes the emulator preview) to get started.

Related links

Contributing

This project welcomes contributions and suggestions. Most contributions require you to agree to a Contributor License Agreement (CLA) declaring that you have the right to, and actually do, grant us the rights to use your contribution. For details, visit https://cla.opensource.microsoft.com.

When you submit a pull request, a CLA bot will automatically determine whether you need to provide a CLA and decorate the PR appropriately (e.g., status check, comment). Simply follow the instructions provided by the bot. You will only need to do this once across all repos using our CLA.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact [email protected] with any additional questions or comments.

surface-duo-sdk-unity-samples's People

Contributors

conceptdev avatar microsoft-github-operations[bot] avatar microsoftopensource avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

surface-duo-sdk-unity-samples's Issues

Split not working correctly on Pixel Fold.

Sample code (unchanged) built with Unity 202.3.48f1 builds and executes on original Google Pixel Fold Android 14, build 2APIA 240405.002.A1.

Launch application and open Pixel Fold if not already open.
Displays and reports as expected.
Swipe up and select "split" Choose a second app to split the screen with the Sample.

The sample goes dark and does not display.
Display will return when split is closed. The other app (Outlook in this case) continues to work as expected.

rotation on Pixel Fold not working.

Sample code (unchanged) built with Unity 202.3.48f1 builds and executes on original Google Pixel Fold Android 14, build 2APIA 240405.002.A1.

Pixel Fold closed. External screen only.
Launches on external screen as expected.
Rotates in both directions to all rotations correctly.

Open Pixel Fold device.
App consumes full screen. Reports correctly as expected.
Rotate counterclockwise 90 degrees. After an intermediate resize step (not always, maybe only first time), app rotates and fills screen and reports correctly.
Rotate counterclockwise 90 degrees again (upside down now). Screen resizes but does not rotate and fill screen. Still reports Portrait but appears to draw as landscape fit to portrait mode.

Rotating back recovers in all positions but does not correct the upside-down view when rotated through clockwise direction.

Rotation on Surface Duo not working.

Sample code (unchanged) built with Unity 202.3.48f1 builds and executes on original Surface Duo Android 12, build 2022.902.48.
Launches on left screen as expected, reports information as expected.
Rotate counterclockwise. Displays full screen as expected reports as expected.
Rotate clockwise 180 degrees. Displays full screen as expected reports as expected.
Rotate clockwise 90 degrees (upside down). Screen displays on right with top edge on the right (unexpected) and goes into perpetual resizing between filling screen and displaying portrait view shrunk to fit leaving unused space on both sides (top/bottom).
Rotate back 90 degrees (left screen on top) and it may show full screen or portrait screen fit in window depending on timing of the rotate.

From screen on left in normal rotation, span the app across both screens. Reports and appears as expected.
Rotate screen 90 degrees counterclockwise. Screen rotates between upright portrait and upside-down portrait.
Rotate back to normal. Screen recovers.
Rotate Screen 90 degrees clockwise. Same behavior as rotation counterclockwise. Screen rotates between upright portrait and upside-down portrait.
Rotate to upside-down reports correctly.

Return to normal, still spanned.
Rotate counterclockwise 90 degrees. As expected.
Rotate counterclockwise 90 degrees again (upside down). As expected.
Return to normal, still spanned.
Rotate clockwise 90 degrees. As expected.
Rotate clockwise 90 degrees again (upside down). Does not rotate... consistently.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.