예제 #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();
    }
예제 #2
0
 private void Awake()
 {
     uiModeleClassPath = TemplatePathUtil.GetDiskPath(uiModeleClassPath);
 }