Exemple #1
0
    static void BuildMenu()
    {
        BuildUtils build_utils = ScriptableObject.CreateInstance <BuildUtils>();

        build_utils.titleContent = new GUIContent("GPR Build Utils");
        build_utils.position     = new Rect(Screen.width / 2, Screen.height / 2, 600, 100);
        build_utils.minSize      = new Vector2(600, 100);
        build_utils.maxSize      = new Vector2(600, 100);
        build_utils.name_        = UnityEngine.SceneManagement.SceneManager.GetActiveScene().name;
        build_utils.scene_       = UnityEngine.SceneManagement.SceneManager.GetActiveScene().path;
        build_utils.version_     = System.DateTime.Now.ToString("yyyyMMdd");
        build_utils.ShowUtility();
    }