Exemplo n.º 1
0
    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();
    }
Exemplo n.º 2
0
 private void Awake()
 {
     uiModeleClassPath = TemplatePathUtil.GetDiskPath(uiModeleClassPath);
 }