Open echen67 opened 7 years ago
Reason why they have
using Windows.Storage; using Windows.System;
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 :
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
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
Further Ref : https://docs.unity3d.com/550/Documentation/Manual/windowsstore-scripts.html
The whole CaptureCamera needs to be required to use above code