コード例 #1
0
        public static void CreateSnapshot(TeamUtility.IO.InputManager inputManager)
        {
            if(_snapshotFile == null)
            {
                _snapshotFile = Path.Combine(Application.temporaryCachePath, "input_config.xml");
            }

            InputSaverXML inputSaver = new InputSaverXML(_snapshotFile);
            inputSaver.Save(inputManager.inputConfigurations, inputManager.defaultConfiguration);
        }
コード例 #2
0
        private void ExportInputConfigurations()
        {
            string file = EditorUtility.SaveFilePanel("Export input profile", "", "profile.xml", "xml");
            if(string.IsNullOrEmpty(file))
                return;

            InputSaverXML inputSaver = new InputSaverXML(file);
            inputSaver.Save(_inputManager.inputConfigurations, _inputManager.defaultConfiguration);
            if(file.StartsWith(Application.dataPath))
                AssetDatabase.Refresh();
        }