-
-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Feature: Add support for UWP builds #16
Comments
Hi @BallistiX09, thanks for the report! If a regular Windows DLL can be used by UWP builds, it's likely just a matter of selecting the DLL and toggling the UWP platform support. Could you be so kind as to test this for me: selecting the Windows DLLs, marking UWP as supported and test it out on a build? I don't have a Windows machine with Unity correctly setup at the moment. There is no DLL for ARM right now, but we can surely build one! |
Ahh sorry, you're right, turning on UWP support on the DLL (included under WSAPlayer in the DLL platform settings) solves the issue! When I checked the DLL platform settings, all the options were greyed out, which I thought was deliberately built into the plugin to stop users from messing with the settings. Turns out it's because I had the plugin imported through Unity's package manager using the GitHub link, which I guess adds the plugin as read-only and wouldn't let me change settings. Figured I'd mention here in case anybody else has the same issue at some point! ARM support on Windows would be a massive help though if that's doable! |
Awesome! Could you please create a PR with this fix?
Yeah, you have to import the package as an actual directory in your file system, or it's read-only 😅 Good thing is you can actually clone the Git repo directly inside the Packages folder and work on it, that's how I do (actually, I have the packages lying around in my "unity packages" path and create symbolic links in the several test Unity projects, but it's kind of the same thing).
Sure it's doable! Just have to discover how to build for Windows ARM, never done this before. I usually just cross-compile stuff using MinGW, and it seems LLVM-MinGW supports compiling to ARM, so shouldn't be too hard. We can always fallback to MSVC as well if necessary =P |
Hey @BallistiX09, I made a Windows arm64 build using llvm-mingw, it's in branch windows-arm64. |
Sorry about the wait, just catching up on this!
No problem, I've opened a PR on the arm64 branch you made since that'll also need the same changes anyway, so it seemed better to just add it there from the start! I'm assuming it's just the meta files which needed tweaked since that's what controls the platform support, everything else can likely stay as-is.
I don't actually have an arm64 machine for testing with just yet, sorry! |
Ok! I reviewed it there, thank you very much for the contribution!
Yes, only meta files need to be changed for this.
Oh, ok, don't worry. You brought it up, so I guessed you'd have a machine to test it =P |
No problem at all, I'll make the changes mentioned in the comments later tonight and get those pushed!
Ahh not yet, I was just hoping to add (untested for now) Windows ARM support to my game because of the newly announced Windows ARM laptops releasing soon, but it'll be a little while until I can get one myself. Here's hoping somebody else picks it up though! |
And it's merged into main! Version 1.0.0 is tagged, so it should be up in OpenUPM soon. |
Nice one, no problem at all, thanks for merging it in! 🙌 |
I'm trying to create a Universal Windows Platform build, but I'm running onto an error where Unity is unable to load the DLL (actually the same issue I reported on Android here: #2, except this happens on both development and release builds).
I'm not sure if that's the same bug which happened on Android, or if it's because UWP isn't currently supported, but it would be ideal if UWP builds (both ARM and x86 architectures) could be supported on this plugin though.
Thanks!
The text was updated successfully, but these errors were encountered: