示例#1
0
 void OnDisable()
 {
     if (dirty)
     {
         LipsyncAutomationData.SaveDataFile();
     }
 }
示例#2
0
        /// <summary>
        /// Call this to build sequence databases
        /// </summary>
        public static void BuildSequenceDatabases()
        {
            LipsyncAutomationData dataFile = LipsyncAutomationData.GetDataFile();
            string dataPath   = dataFile.dataFolder;
            string outputPath = dataFile.outputFolder;

            BuildSequenceDatabases(dataPath, outputPath);
        }
示例#3
0
        public static LipsyncAutomationData GetDataFile()
        {
            LipsyncAutomationData dataFile = (LipsyncAutomationData)AssetDatabase.LoadAssetAtPath(path, typeof(LipsyncAutomationData));

            if (dataFile == null)
            {
                dataFile = ScriptableObject.CreateInstance <LipsyncAutomationData>();
            }

            return(dataFile);
        }
示例#4
0
 void OnEnable()
 {
     dataFile = LipsyncAutomationData.GetDataFile();
 }
 void OnEnable()
 {
     dataFile = LipsyncAutomationData.GetDataFile();
 }