Beispiel #1
0
    private void OnEnable()
    {
        CriAtomAcfInfo.GetCueInfo(false);
        if (CriAtomAcfInfo.acfInfo != null)
        {
            this.acfPath       = CriAtomAcfInfo.acfInfo.acfPath;
            this.dspBusSetting = CriAtomAcfInfo.acfInfo.dspBusSetting;
        }
        else
        {
            string[] files = Directory.GetFiles(Application.streamingAssetsPath);
            foreach (string file in files)
            {
                if (System.IO.Path.GetExtension(file) == ".acf")
                {
                    this.acfPath = file;
                }
            }
        }

        string tmpStr = FromBase64(EditorPrefs.GetString("CriAtomWindow_OutputAssetsRoot"));

        if (tmpStr != string.Empty)
        {
            atomCraftOutputAssetsRootPath = tmpStr;
        }
    }
Beispiel #2
0
 private void ReloadAcbInfo()
 {
     if (CriAtomAcfInfo.GetCueInfo(true, searchPath))
     {
         this.acfPath = CriAtomAcfInfo.acfInfo.acfFilePath;
         CriAtomAcfInfo.acfInfo.GetAcbInfoList(true, searchPath);
     }
     else
     {
         if (EditorApplication.isPlaying)
         {
             Debug.LogError("Not found search file. (created in CRI Atom Craft [acf,acb,awb]) \"" + searchPath + "\"", this);
         }
         else
         {
             Debug.LogError("Please push \"play\" button.(Make sure the Scene has \"CriWareLibrayInitializer\".)", this);
         }
     }
 }