Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Windows Surface Pro 3

Discussion in 'Windows' started by Teriander, Dec 10, 2014.

  1. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Is it possible to create a private game and have it run on Windows Surface Pro 3 and still use the Gyro system inside the tablet?

    Im creating a personal project that I do not want published on the Windows Store, but still want to use it on a Surface Tablet.

    Any feedback is appreciated.

    Thanks!
     
  2. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    Yes, of course, it's possible to create an instal package from Visual Studio, you then simply copy it to Surface and install it.
     
  3. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    "Create an Install Package"? Do you mean part of the "Build" options in unity? Basically I would create a "Build" from unity selecting the Standalone PC option and just copy the output to the Surface Tablet? Or are you saying I need to install VS on the tablet?
     
  4. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    When you build to Windows Store Apps from Unity (in Build menu), you get a Visual Studio solution, open solution, in the solution explorer, right click on solution, Create App Packages, create it for local testing, few files will be produced, copy those files to Surface, run provided powershell script, and you're done.

    You don't need to install Visual Studio on the Surface .
     
  5. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Thanks Tomas!

    Also, What about Unity Remote 4? If I need to test my scene inside the Surface Tablet since it uses Gyros. Will it work if I install Unity Remote 4 some how? Curious if I need to create a build every time I'm ready to test and transfer it to the Surface, or if I can have some sort of direct connection?
     
  6. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    To clarify what I'm doing, we're converting our 3D architectural animation scene into a Unity Scene where the client can navigate through the walk-space by holding a iPad or Surface tablet and rotating the tablet to physical look around the space on the screen. It's working well on our iPad, but we want to use a Surface tablet for a number of reasons. Any advice on helping with this transition is appreciated!
     
  7. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Why not just set the configuration as release and just deploy it to the surface from visual studio?
     
  8. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    Unity Remote 4 works only on Android and iOS afaik.
     
  9. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    You can install debug tools to surface and then you can run your app from Visual Studio on device.
     
  10. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    I have visual studio installed on my surface pro 3 itself and I build and test right on the device.
     
  11. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Dustin,

    Just to clarify, I need to only install Visual Studio on to my Surface Pro, create my Unity Scene on my desktop PC, but then export (build) as "Windows Store" and copy those files to the Surface Pro to run it? Or am I missing something?
     
  12. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    That's exactly right. After you build from Unity, just copy the Windows Store or Universal whatever you create over to your Surface Pro. Then open that solution in Visual Studio and run it.
     
  13. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    This would work.
    You can also install debug tools on your surface, then you will be able to do remote debugging from your PC on the surface.
     
    Dustin-Horne likes this.
  14. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Aurimas,

    I'm installing Visual Studios on my Surface. A few issues:

    First, the only experience with Visual Studio I have is writing C# for Unity and letting Unity debug, I'm not sure how I'm going to debug with Visual Studio on my Surface Tablet. I'm assuming its related to the steps Thomas mentioned above where he states - "Create App Packages, create it for local testing, few files will be produced, copy those files to Surface, run provided powershell script, and you're done." Is that the same thing?

    Second, our office is running Windows 7 , and Unity just informed me I can not create a "Windows Store" build unless I'm on Windows 8. Is there a workaround for this or do I need to upgrade my PC to Windows 8? Not sure if I can do that now, unless you know of a solution? Possibly installing Unity on my Surface and copying the developed Unity files from Win7 machine to the Surface?
     
  15. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Also! Another important question:

    Do I want VS Express 2013 for Windows or for Windows Desktop to install on my Surface Pro. I currently have Windows Destktop installed on my Windows7 PC machine. Not sure if that makes a huge difference.
     
  16. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    You can only build from Unity for WSA, if you're running on Windows 8 machine. There is no workaround for that.
    Unity generates a Visual Studio solution, but it requires Unity too, as some tools from Unity directory are used when building VS solution.
    So, options you have:
    - install both Visual Studio and Unity on Surface, then you can build and run your Unity project there. No extra steps needed.
    - install Visual Studio remote debugging tools on surface. Then you can do build on PC, setup remote dubugging and deploy to surface that way.
    - build on PC, copy package to surface and intall it via PowerShell.
     
  17. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Aurimas,

    Thank you very much. Im interested in the second option. Install Visual Studio remote debugging tools on surface. Is there any documentation on this? Since I've never done it this way before I'm not exactly sure where to begin. Not even sure if I need VS Express 2013 for Windows or for Windows Desktop on my Surface (would that make a difference or it doesn't matter?)

    I'm also looking into upgrading my office machine to Windows 8. Sounds like that will solve a lot of my issues. By the way, how are you connecting to your Surface from PC? Wifi? Or A-Male to A-Male USB cable?

    Thanks again!
     
  18. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Use VS 2013 community edition
    Aurimas - are you sure Unity is required to be installed? I thought as long as the assemblies are there that go with the build you're fine in running the Visual Studio Solution
    And I just do it over the network Teriander.
     
  19. Tomas1856

    Tomas1856

    Unity Technologies

    Joined:
    Sep 21, 2012
    Posts:
    3,658
    Dustin> you're right.
    Aurimas probably assumed that you might want to edit your Unity project on the Surface, some people do that :) Not sure, if it's very convenient.

    You can connect to Surface via Wifi, or buy and Ethernet-To-USB adapter, and use that for wired connection
     
  20. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    I use WiFi to a shared folder on my dev machine but I'm only dealing with small test projects so it's pretty easy to cpy.
     
  21. Aurimas-Cernius

    Aurimas-Cernius

    Unity Technologies

    Joined:
    Jul 31, 2013
    Posts:
    3,627
    Assemblies are additionally processed when building Visual Studio solution. You can see prebuild events copying files and running a tool, called AssemblyConverter for managed assemblies. You could copy that tool to Surface and adjust prebuild events accordingly, so you don't need full Unity install.
    Anyway, I think this option is the most troublesome.
     
  22. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Ok, my new Surface Pro 3 came in yesterday and I also upgraded to Windows 8.1 Pro on my workstation. I tried to run Unity with the "Windows Store" build, and nothing happens. After reading the manual a bit, it does stay on the manual:
    "Before you can proceed you need to acquire Windows 8 developer license, this can be done in two following ways.."

    Is this accurate? Do I need to pay for a Windows 8 developer license to export the project to work on my Surface? If so, Im assuming this cost. This will completely defeat the purpose of me switching from iPad to avoid Apple's store. Please tell me I'm just missing something.

    My Build settings are:
    upload_2014-12-17_9-47-18.png
     
  23. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    I think I figured out what the problem is. I have Visual Studio 2013 for Windows Desktop installed on my workstation instead of the "Community" version. Im installing the community version now and I hope this will solve my issue!
     
  24. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    I don't think you have to pay for that developer license. Visual Studio just needs to install it. I think you'll only need to pay if you want a publisher license but I can't be positive as that comes free with my MSDN so I'm not sure if that changed.
     
  25. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Dustin,

    Yep! I've got it installed and working now. Was able to export from Unity. So now I'm installing VS Community on my Surface Pro and all I have to do is run the copied solution generated from Unity that's on my desktop to Surface and all should work right? Or am I missing something?
     
  26. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Ok, so in my folder created by Unity I have four items:
    (folder)ExteriorTest
    (folder)Players
    ExteriorTest.sln
    UnityCommon.props

    When running ExteriorTest.sln it opens Visual Studio. Click the (Play Button)"Local Machine" I get the following error message:

    Then nothing happens.
    What am I doing wrong?

    I forgot to mention, this only happens when running the solution on my Surface Tablet, on my desktop PC it launches the app just fine.

    Running in Master x86 mode.
     
    Last edited: Dec 17, 2014
  27. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    It appears Aurimas Cernius may have been correct. After installing Unity as well on the Surface Tablet, the error message went away and the app ran correctly on the Surface. I think the next step for me is to create a PowerShell or some sort so that I can run the App on my tablet without the need to run through Visual Studio or uploading to Windows Store.
     
  28. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    Yeah, I forgot about that dependency. Unity does have to be installed on your surface. Can't you hook your Surface up via USB and use it as the debug target from Visual Studio on your PC?
     
  29. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Dustin,

    It's funny you mentioned the USB. I bought a USB to USB cable and it's connecting fine (it uses an internal program called "GO! Bridge" that seems to allow me to share files, I hope this will suffice).

    Though I've never used Visual Studio in Remote Machine mode. Researching now on how to achieve this connection. I'm also not 100% sure this will be the ideal solution.

    Basically my boss wants to take the scene I create in Unity which shows a building in 3d space and the camera is controlled by the gyroscopes built in the tablet. He wants to be able to walk up to clients and display this without having to go through Visual Studio. He could be in another part of the country so the Remote option doesn't seem ideal. What do you think would be the best solution?
     
  30. Dustin-Horne

    Dustin-Horne

    Joined:
    Apr 4, 2013
    Posts:
    4,568
    I'm not really sure... to be honest I've got Unity installed on my surface as well and I just run there. I've never actually deployed from my desktop directly so I wasn't sure if it was possible. I use the USB debugging option when testing on my Windows Phone.
     
  31. Tautvydas-Zilys

    Tautvydas-Zilys

    Unity Technologies

    Joined:
    Jul 25, 2013
    Posts:
    10,491
    The easiest solution for you would be to open the Visual Studio solution on your PC, go to menu "Project" -> "Store" -> "Create app packages". Press "no" when it asks you whether you want to build it to upload it to the store, then select to build "Master (x86)" configuration. Press "Create". It will create an app packages folder inside of which will be the compiled application. Copy all directory content to your surface. Among those files, there will be a powershell script. Simply right click on it on the surface and press install. It will install the application and you'll be able to launch it from the start menu, without Unity or Visual Studio needed.
     
  32. Teriander

    Teriander

    Joined:
    Jan 12, 2012
    Posts:
    113
    Tautvydas Zilys,

    Yes! This is exactly what I'm looking for! Unfortunately I couldn't complete the install because of an error message that says the package already exist or something. I had just posted a new topic about this because I didn't read your reply until just now. Here is link to the error and the topic:
    http://forum.unity3d.com/threads/registration-of-the-app-failed.286437/