The issue of porting Unity to UWP and adding in-app purchases.

一 王 0 Reputation points
2025-01-02T15:44:42.7+00:00

I have a Unity game and I want to port it to UWP and add Microsoft in-app purchases. Are there any tutorials or case studies available? I have failed multiple times, especially when trying to add DLLs and other components.

thanks

Universal Windows Platform (UWP)
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Michael Taylor 56,091 Reputation points
    2025-01-02T16:18:57.9733333+00:00

    UWP is a different beast than a regular NET app so you cannot simply "migrate" from your codebase to UWP. Copying DLLs will probably result in errors about them not supporting the runtime. You must use assemblies/packages that support UWP.

    I would recommend you follow the instructions given here for creating a new Unity UWP app. Then bring across your Unity-specific code piece by piece and adding the UWP-compatible packages to get it to compile. You'll undoubtedly need to make code changes because the runtime model of UWP is different than what you're using now but hopefully the changes won't be too bad. Again, do this piecemeal until everything is converted so you can fix compiler errors as you go along.

    Further support for Unity should be posted in their support channel.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.