Exemplo n.º 1
0
        private static void Init()
        {
            _windowInstance = (BuildModeEditor)GetWindow(typeof(BuildModeEditor));
            PlayerSettings.displayResolutionDialog = ResolutionDialogSetting.Disabled;

            SceneView.onSceneGUIDelegate -= DrawValidation;
            SceneView.onSceneGUIDelegate += DrawValidation;

            _windowInstance.ReadSettingsFile();
        }
Exemplo n.º 2
0
        public static void CreateVersionFile(string path)
        {
            if (path[path.Length - 1] == '/')
            {
                path = path.Remove(path.Length - 1, 1);
            }

            string filePath = path + "/version.xml";

            PYBundleVersion version = new PYBundleVersion();

            if (File.Exists(filePath))
            {
                version = PYXML.Deserializer <PYBundleVersion>(filePath);
            }

            // Update informations
            version.Version      = BuildModeEditor.GetBundleVersion();
            version.CreationDate = DateTime.Now.ToString("MM/dd/yyyy HH:mm:ss");
            PYXML.Serializer(filePath, version);

            AssetDatabase.Refresh();
            PYBundleBuildWindow.Instance.Focus();
        }