private static void CreateTemplate(string templateFile, string dstPath, string moduleName) { Validate(); string content = File.ReadAllText(TemplatePathUtil.GetDiskPath(templateFile)); content = content.Replace("#NAME#", moduleName); File.WriteAllText(dstPath, content, new System.Text.UTF8Encoding(false)); AssetDatabase.Refresh(); }
private void Awake() { uiModeleClassPath = TemplatePathUtil.GetDiskPath(uiModeleClassPath); }