Przeglądaj źródła

删除LitJson、仓库XRInputManager脚本、还原ARMap脚本

蓝色星空 1 rok temu
rodzic
commit
604aeb7451

+ 2 - 25
Assets/ImmersalSDK/Core/Scripts/AR/ARMap.cs

@@ -17,8 +17,6 @@ using System.Collections.Generic;
 using System.Text.RegularExpressions;
 using System.Threading.Tasks;
 using UnityEngine.Rendering;
-using Blue;
-using UnityEditor;
 
 namespace Immersal.AR
 {
@@ -28,7 +26,7 @@ namespace Immersal.AR
     }
 
     [ExecuteAlways]
-    public class ARMap : AbstractController
+    public class ARMap : MonoBehaviour
     {
         public static readonly Color[] pointCloudColors = new Color[]	{	new Color(0.22f,    1f,     0.46f), 
 																            new Color(0.96f,    0.14f,  0.14f),
@@ -330,29 +328,8 @@ namespace Immersal.AR
 
             ParseMapIdAndName();
             InitializeMesh();
-
-            this.SubscribeEvent<LoadMapFileEvent>(async e=>
-            {
-                //FileStream stream = new FileStream(Application.persistentDataPath + "/Map Data/81060-0515GHz.bytes", FileMode.Open);
-                //StreamReader reader = new StreamReader(stream);
-                //TextAsset textAsset = new TextAsset(await reader.ReadToEndAsync());
-
-                //FileStream stream = new FileStream(Application.persistentDataPath + "/Map Data/81060-0515GHz.bytes", FileMode.Open);
-                //TextAsset textAsset = (TextAsset)new BinaryFormatter().Deserialize(stream);
-
-                // 加载后不显示地图
-                //FileStream stream = new FileStream(Application.persistentDataPath + "/Map Data/81060-0515GHz.bytes", FileMode.Open);
-                //byte[] bytesArray = new byte[stream.Length];
-                //stream.Read(bytesArray, 0, (int)stream.Length);
-                //TextAsset textAsset = new TextAsset(System.Text.Encoding.UTF8.GetString(bytesArray));
-
-                //mapFile = Resources.Load<TextAsset>("Map Data/81060-0515GHz");
-                byte[] s = File.ReadAllBytes(Application.persistentDataPath + "/Map Data/" + e.fileName);
-                await LoadMap(s);
-                this.GetComponent<ARMap>().enabled = true;
-                this.SendCommand(new StartImmersalLocalizerCommand());
-            });
         }
+
         private void ParseMapIdAndName()
         {
             int id;

+ 0 - 8
Assets/NRSDK.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 01cad2a8eb05344d2b1c9b4a516b4965
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Assets/Plugins/LitJson.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 089094a089eb76e49a15f1f9a721318a
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

BIN
Assets/Plugins/LitJson/LitJson.dll


+ 0 - 33
Assets/Plugins/LitJson/LitJson.dll.meta

@@ -1,33 +0,0 @@
-fileFormatVersion: 2
-guid: 8749ef38c3afa6849a57889203bb4c41
-PluginImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  iconMap: {}
-  executionOrder: {}
-  defineConstraints: []
-  isPreloaded: 0
-  isOverridable: 0
-  isExplicitlyReferenced: 0
-  validateReferences: 1
-  platformData:
-  - first:
-      Any: 
-    second:
-      enabled: 1
-      settings: {}
-  - first:
-      Editor: Editor
-    second:
-      enabled: 0
-      settings:
-        DefaultValueInitialized: true
-  - first:
-      Windows Store Apps: WindowsStoreApps
-    second:
-      enabled: 0
-      settings:
-        CPU: AnyCPU
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 8
Assets/SDK.meta

@@ -1,8 +0,0 @@
-fileFormatVersion: 2
-guid: 1ad50dc8203ccaa40bf14a100940c3cd
-folderAsset: yes
-DefaultImporter:
-  externalObjects: {}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 0 - 377
Assets/XRInputManager.cs

@@ -1,377 +0,0 @@
-using NRKernal;
-using SC.XR.Unity.Module_InputSystem;
-using System;
-using System.Collections;
-using System.Collections.Generic;
-using UnityEngine;
-using UnityEngine.InputSystem;
-using UnityEngine.XR;
-using UnityEngine.XR.OpenXR.Input;
-
-public class XRInputManager : MonoBehaviour
-{
-    public Transform left = null;
-    public Transform right = null;
-    public InputActionProperty inputEvent;
-    public List<InputActionReference> listinput;
-    int xy = 8;
-    // Start is called before the first frame update
-    void Start()
-    {
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.APP, () => {
-            Debug.Log("ControllerButton.APP===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.BEGIN, () => {
-            Debug.Log("ControllerButton.BEGIN===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.END, () => {
-            Debug.Log("ControllerButton.END===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.GRIP, () => {
-            Debug.Log("ControllerButton.GRIP===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.HOME, () => {
-            Debug.Log("ControllerButton.HOME===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.TRIGGER, () => {
-            Debug.Log("ControllerButton.TRIGGER===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        NRInput.AddDownListener(ControllerHandEnum.Right, ControllerButton.TOUCHPAD_BUTTON, () => {
-            Debug.Log("ControllerButton.TOUCHPAD_BUTTON===>Down");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-        });
-        
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.APP, () => {
-            Debug.Log("ControllerButton.APP===>UP");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.BEGIN, () => {
-            Debug.Log("ControllerButton.BEGIN===>UP");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.END, () => {
-            Debug.Log("ControllerButton.END===>UP");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.GRIP, () => {
-            Debug.Log("ControllerButton.GRIP===>UP");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.HOME, () => {
-            Debug.Log("ControllerButton.HOME===>UP");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.TRIGGER, () => {
-            Debug.Log("ControllerButton.HOME===>TRIGGER");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-        NRInput.AddUpListener(ControllerHandEnum.Right, ControllerButton.TOUCHPAD_BUTTON, () => {
-            Debug.Log("ControllerButton.HOME===>TOUCHPAD_BUTTON");
-            API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-        });
-#if UNITY_EDITOR
-        Invoke("startXR", 1f);
-#endif
-
-        return;
-        for (int i = 0; i < 15; i++)
-        {
-            listinput[i].action.Enable();
-            listinput[i].action.performed += OnEventL;
-            listinput[i].action.canceled += OnCanceledEventL;
-        }
-        for (int i = 15; i < listinput.Count; i++)
-        {
-            listinput[i].action.Enable();
-            listinput[i].action.performed += OnEventR;
-            listinput[i].action.canceled += OnCanceledEventR;
-        }
-        InputDevices.deviceConnected += onDeviceConnected;
-        InputDevices.deviceDisconnected += onDeviceDisConnected;
-        Invoke("startXR", 1f);
-    }
-
-    private void downTP()
-    {
-    }
-
-    List<Vector3> leftInfo = new List<Vector3>();
-    List<Vector3> rightInfo = new List<Vector3>();
-    void startXR()
-    {
-        Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.KS, false);
-        Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.Head, true);
-        /*
-        left.gameObject.SetActive(false);
-        right.gameObject.SetActive(false);
-        List<UnityEngine.XR.InputDevice> inputDevices = new List<UnityEngine.XR.InputDevice>();
-        InputDevices.GetDevices(inputDevices);
-        for (int i = 0; i < inputDevices.Count; i++)
-        {
-            onDeviceConnected(inputDevices[i]);
-        }*/
-    }
-    private void Update()
-    {
-        if (Input.GetKeyDown(KeyCode.X))
-        {
-            API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.X, InputKeyState.DOWN);
-        }
-        if (Input.GetKeyUp(KeyCode.X))
-        {
-            API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.X, InputKeyState.UP);
-        }
-    }
-    private void onDeviceDisConnected(UnityEngine.XR.InputDevice obj)
-    {
-        if (obj.characteristics.ToString().Contains(InputDeviceCharacteristics.Left.ToString()))
-        {
-            Debug.Log("Left===>" + obj.isValid);
-            left.gameObject.SetActive(obj.isValid);
-        }
-
-        if (obj.characteristics.ToString().Contains(InputDeviceCharacteristics.Right.ToString()))
-        {
-            Debug.Log("Right===>" + obj.isValid);
-            right.gameObject.SetActive(obj.isValid);
-        }
-    }
-
-    private void OnApplicationPause(bool pause)
-    {
-        if (!pause)
-        {
-            List<UnityEngine.XR.InputDevice> inputDevices = new List<UnityEngine.XR.InputDevice>();
-            InputDevices.GetDevices(inputDevices);
-            for (int i = 0; i < inputDevices.Count; i++)
-            {
-                onDeviceConnected(inputDevices[i]);
-            }
-        }
-    }
-
-    private void onDeviceConnected(UnityEngine.XR.InputDevice obj)
-    {
-        if (obj.characteristics.ToString().Contains(InputDeviceCharacteristics.Left.ToString()))
-        {
-            Debug.Log("Left===>" + obj.isValid);
-            left.gameObject.SetActive(obj.isValid);
-        }
-
-        if (obj.characteristics.ToString().Contains(InputDeviceCharacteristics.Right.ToString()))
-        {
-            Debug.Log("Right===>" + obj.isValid);
-            right.gameObject.SetActive(obj.isValid);
-        }
-
-    }
-    private void OnCanceledEventL(InputAction.CallbackContext context)
-    {
-        Debug.Log("OnCanceledEventL" + context.control.name);
-        switch (context.control.name)
-        {
-            case "secondarytouched":
-                break;
-            case "secondarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Y, InputKeyState.UP);
-
-                break;
-            case "primarytouched":
-                break;
-            case "primarybutton":
-                Debug.Log("InputKeyCode.A===¡·UP");
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.X, InputKeyState.UP);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-
-                break;
-            case "touchpadtouched":
-                break;
-            case "thumbstickclicked":
-                break;
-            case "thumbstick":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.JoystickX = xy + (int)(context.ReadValue<Vector2>().x * 10);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.JoystickY = xy + (int)(context.ReadValue<Vector2>().y * 10);
-
-                break;
-            case "grip":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.HallInside = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "grippressed":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.LHallInside, InputKeyState.UP);
-
-                break;
-            case "trigger":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.HallFoward = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "menu":
-                Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.KS, true);
-                Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.Head, false);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.LFunction, InputKeyState.UP);
-                break;
-        }
-    }
-    void OnEventL(InputAction.CallbackContext context)
-    {
-        Debug.Log("OnEventL" + context.control.name);
-        switch (context.control.name)
-        {
-            case "secondarytouched":
-                break;
-            case "secondarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Y, InputKeyState.DOWN);
-
-                break;
-            case "primarytouched":
-                break;
-            case "primarybutton":
-                Debug.Log("InputKeyCode.A===¡·DOWN");
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.X, InputKeyState.DOWN);
-
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-
-                break;
-            case "touchpadtouched":
-                break;
-            case "thumbstickclicked":
-                break;
-            case "thumbstick":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.JoystickX = xy + (int)(context.ReadValue<Vector2>().x * 10);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.JoystickY = xy + (int)(context.ReadValue<Vector2>().y * 10);
-
-                break;
-            case "grip":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.HallInside = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "grippressed":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.LHallInside, InputKeyState.DOWN);
-
-                break;
-            case "trigger":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.HallFoward = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "menu":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSLeft.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.LFunction, InputKeyState.DOWN);
-                break;
-
-        }
-    }
-
-    private void OnCanceledEventR(InputAction.CallbackContext context)
-    {
-        Debug.Log("OnCanceledEventR" + context.control.name);
-        switch (context.control.name)
-        {
-            case "secondarytouched":
-                break;
-            case "secondarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.B, InputKeyState.UP);
-
-                break;
-            case "primarytouched":
-                break;
-            case "primarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.A, InputKeyState.UP);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.UP);
-
-                break;
-            case "touchpadtouched":
-                break;
-            case "thumbstickclicked":
-                break;
-            case "thumbstick":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.JoystickX = xy + (int)(context.ReadValue<Vector2>().x * 10);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.JoystickY = xy + (int)(context.ReadValue<Vector2>().y * 10);
-
-                break;
-            case "grip":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.HallInside = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "grippressed":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.RHallInside, InputKeyState.UP);
-
-                break;
-            case "trigger":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.HallFoward = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "menu":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.RFunction, InputKeyState.UP);
-
-                break;
-        }
-    }
-    void OnEventR(InputAction.CallbackContext context)
-    {
-        Debug.Log("OnEventR" + context.control.name);
-        switch (context.control.name)
-        {
-            case "secondarytouched":
-                break;
-            case "secondarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.B, InputKeyState.DOWN);
-
-                break;
-            case "primarytouched":
-                break;
-            case "primarybutton":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.A, InputKeyState.DOWN);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.Enter, InputKeyState.DOWN);
-
-                break;
-            case "touchpadtouched":
-                break;
-            case "thumbstickclicked":
-                break;
-            case "thumbstick":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.JoystickX = xy + (int)(context.ReadValue<Vector2>().x * 10);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.JoystickY = xy + (int)(context.ReadValue<Vector2>().y * 10);
-
-                break;
-            case "grip":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.HallInside = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "grippressed":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.RHallInside, InputKeyState.DOWN);
-
-                break;
-            case "trigger":
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.HallFoward = 10 - (int)((context.ReadValue<float>()) * 10f);
-
-                break;
-            case "menu":
-                Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.KS, true);
-                Module_InputSystem.instance.SetActiveInputDevice(InputDeviceType.Head, false);
-                API_GSXR_Module_InputSystem_KS.GSXR_KSRight.inputDataKS.inputKeys.InputDataAddKey(InputKeyCode.RFunction, InputKeyState.DOWN);
-
-                break;
-
-        }
-    }
-
-    // Debug.Log("OnEvent=name==>" + context.control.name);
-    /*
-    Debug.Log("OnEvent=layout==>" + context.control.layout);
-    Debug.Log("OnEvent=noisy==>" + context.control.noisy);
-    Debug.Log("OnEvent=path==>" + context.control.path);
-    Debug.Log("OnEvent=shortDisplayName==>" + context.control.shortDisplayName);
-    Debug.Log("OnEvent=synthetic==>" + context.control.synthetic);
-    Debug.Log("OnEvent=valueSizeInBytes==>" + context.control.valueSizeInBytes);
-    Debug.Log("OnEvent=valueType==>" + context.control.valueType.Name);
-    Debug.Log("OnEvent=variants==>" + context.control.variants);
-    Debug.Log("OnEvent=variants==>" + context.control.EvaluateMagnitude());*/
-}
-
-
-

+ 0 - 11
Assets/XRInputManager.cs.meta

@@ -1,11 +0,0 @@
-fileFormatVersion: 2
-guid: 8ff77cfe8e454344ba9328dd8422f16e
-MonoImporter:
-  externalObjects: {}
-  serializedVersion: 2
-  defaultReferences: []
-  executionOrder: 0
-  icon: {instanceID: 0}
-  userData: 
-  assetBundleName: 
-  assetBundleVariant: 

+ 2 - 2
ProjectSettings/ProjectSettings.asset

@@ -902,7 +902,7 @@ PlayerSettings:
   metroSplashScreenUseBackgroundColor: 1
   platformCapabilities:
     WindowsStoreApps:
-      EnterpriseAuthentication: False
+      CodeGeneration: False
       OfflineMapsManagement: False
       HumanInterfaceDevice: False
       Location: False
@@ -937,8 +937,8 @@ PlayerSettings:
       Contacts: False
       Proximity: False
       InternetClient: True
-      CodeGeneration: False
       BackgroundMediaPlayback: False
+      EnterpriseAuthentication: False
   metroTargetDeviceFamilies:
     Desktop: False
     Holographic: False