예제 #1
0
        private void DoSaveListFile()
        {
            string _js = ShaderGenData.ToJson(Data);

            if (null == ListFile || !ListFile)
            {
                string _assetPath = System.IO.Path.GetDirectoryName(Data.Templates[0]) + "/ListFile.txt";
                ListFile = CreateAsset <TextAsset>(_assetPath);
            }

            WriteAsset(ListFile, _js);
        }
예제 #2
0
 public override void OnDisable()
 {
     SaveSettings(ShaderGenData.ToJson(Data));
 }