Skip to content

Commit 8137fa5

Browse files
Add Writer.WriteToFile for text only
1 parent b34b2d6 commit 8137fa5

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

Assets/Editor/CustomInspectorCreator.meta

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Assets/Editor/CustomInspectorCreator/Utilities/Writer.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,14 @@ public void WriteToFile(string path, string className, string content, bool isTe
2323
AssetDatabase.Refresh();
2424
}
2525

26+
public void WriteToFile(string path, string className, string content)
27+
{
28+
File.WriteAllText($"{path}/{className}_Converted.txt", content);
29+
//MessageLogger.SuccessEditorFileWrite(path, className);
30+
31+
AssetDatabase.Refresh();
32+
}
33+
2634
private static void CreateEditorFolder(string path)
2735
{
2836
if (!AssetDatabase.IsValidFolder($"{path}/Editor"))

0 commit comments

Comments
 (0)