コード例 #1
0
    static void OnPostprocessAllAssets(
        string[] importedAssets, string[] deletedAssets, string[] movedAssets, string[] movedFromPath)
    {
        if (!FourUtil.IsRunning)
        {
            return;
        }

        string strAllImportedAssets = "";

        foreach (string assetPath in importedAssets)
        {
            strAllImportedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath);
        }
        P4VAdd(strAllImportedAssets);
        P4VCheckout(strAllImportedAssets);

        string strAllDeletedAssets = "";

        foreach (string assetPath in deletedAssets)
        {
            strAllDeletedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath);
        }
        P4VDelete(strAllDeletedAssets);

        /*
         * string strAllMovedAssets = "";
         * foreach (string assetPath in movedAssets)
         * {
         *  strAllMovedAssets += FourUtil.GetAssertAndMetaFullPath(assetPath);
         * }
         * P4VAdd(strAllImportedAssets);
         */
    }
コード例 #2
0
ファイル: FourUtil.cs プロジェクト: N5you/Fengshen-Bang-Game
    static void Init()
    {
        FourUtil m_MainWindow = EditorWindow.GetWindow(typeof(FourUtil)) as FourUtil;

        if (m_MainWindow != null)
        {
        }
    }