void OnDisable() { if (dirty) { LipsyncAutomationData.SaveDataFile(); } }
/// <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); }
public static LipsyncAutomationData GetDataFile() { LipsyncAutomationData dataFile = (LipsyncAutomationData)AssetDatabase.LoadAssetAtPath(path, typeof(LipsyncAutomationData)); if (dataFile == null) { dataFile = ScriptableObject.CreateInstance <LipsyncAutomationData>(); } return(dataFile); }
void OnEnable() { dataFile = LipsyncAutomationData.GetDataFile(); }