Search Unity

  1. Improved Prefab workflow (includes Nested Prefabs!), 2D isometric Tilemap and more! Get the 2018.3 Beta now.
    Dismiss Notice
  2. The Unity Pro & Visual Studio Professional Bundle gives you the tools you need to develop faster & collaborate more efficiently. Learn more.
    Dismiss Notice
  3. Let us know a bit about your interests, and if you'd like to become more directly involved. Take our survey!
    Dismiss Notice
  4. Improve your Unity skills with a certified instructor in a private, interactive classroom. Watch the overview now.
    Dismiss Notice
  5. Want to see the most recent patch releases? Take a peek at the patch release page.
    Dismiss Notice

SpectatorView preview for Unity 2018.2+

Discussion in 'Windows Mixed Reality' started by davidjbain, Oct 4, 2018.

  1. davidjbain

    davidjbain

    Joined:
    May 8, 2018
    Posts:
    6
    Hello everyone,

    I am using the spectator view preview version with the iphone. I got it to work in Unity 2017.4.12.f1

    https://docs.microsoft.com/en-us/windows/mixed-reality/spectator-view

    I downloaded the latest mixedrealitytoolkit htk_development branch.
    https://github.com/Microsoft/MixedRealityToolkit-Unity/tree/htk_development

    I copied the dll files into Assets\HoloToolkit-Preview\SpectatorView\Plugins\WSA\x86

    Opened up the spectatorViewExample scene, built it for the hololens, then the iphone in the same session. Got it to work great!

    My issue is that I have to use unity version 2018.2.7f1 to incorporate it into another project. I tried following the same steps for this version of unity. When I build it to the hololens, I get the unity logo, and then nothing afterwords. I looked at the errors, and it appears the SpectatorViewPlugin.dll is not being found or loaded. I made sure I put it in the same exact place, and I made the build settings all the same.

    I was wondering if anyone had any ideas of what I could try to get it to work.

    Thanks
     
  2. davidjbain

    davidjbain

    Joined:
    May 8, 2018
    Posts:
    6
    Figured it out. In the new version of unity, you can't just add the dll files, you also have to navigate to them in the unity editor, click on them, and apply the settings. Now it recognizes the dll files and the app runs!
     
    JasonCostanza likes this.
  3. robinstrike8

    robinstrike8

    Joined:
    Mar 20, 2015
    Posts:
    3
    Hi David,
    I guess you got the spectator view preview working. I'm able to run the example and replaced the star with different model. I found that both are not synchronized. It seems as if the iPad had its own version of the app running and anything I do on the Hololens is not being reflected there. I selected the Hololens version as server in the WorldSync game object and iOS version as local player authority. I think it's not necessary to connect the devices to my system that's running the unity project right ?. For now only my Hololens and iPad are connected in the same network.

    Thanks in advance
     
  4. davidjbain

    davidjbain

    Joined:
    May 8, 2018
    Posts:
    6
    Hi Robin,

    So did you test with just the star first? See if just the star syncs. You need to make both builds in the same unity session, make sure you take out the GTLF files for the ios build and put them back in for the hololens build.

    If the star works than you are just having an issue syncing your variables. The script attached to the star shows how they synced the color changing of the star. If syncing is the issue just look up some UNET tutorials. I think this is the one I used https://unity3d.com/learn/tutorials...ion-simple-multiplayer-example?playlist=29690


    BTW I actually had to revert to 2018.1.9, there is a camera issue with Unity 2018.2 and the hololens https://forum.unity.com/threads/hololens-photo-capturing-failing.548845/