joony0123 / LandmARk-Lens

Microsoft HoloLens travel/education application that provides related information of a landmark in augmented reality
https://devpost.com/software/landmark-lens-p1x2bg
2 stars 0 forks source link

PhotoCapture #3

Open echen67 opened 7 years ago

joony0123 commented 7 years ago

Reason why they have

if !UNITY_EDITOR

using Windows.Storage; using Windows.System;

endif

b/c Unity Editor uses Mono to compile, but since these are from WSA(Window Store App) we need to compile using Window's compiler (like .NET Core) Above is one way, and another way(I think better) is :

if NETFX_CORE

        return Windows.System.UserProfile.AdvertisingManager.AdvertisingId;
    #else
        return "";
    #endif

Further Ref : https://docs.unity3d.com/550/Documentation/Manual/windowsstore-scripts.html

The whole CaptureCamera needs to be required to use above code