终于修复了PropertyItem多层预制体的收纳/展开rect错误

This commit is contained in:
2025-09-07 17:50:20 +08:00
parent 427b916dd2
commit 6de8b3ebc5
8 changed files with 58 additions and 27 deletions

View File

@@ -51,12 +51,9 @@ namespace Convention
public ToolFile GetConfigFile() => DataDir | ConstConfigFile;
public ToolFile ConfigFile => GetConfigFile();
public ToolFile GetFile(string path, bool isMustExist = false)
public ToolFile GetFile(string path)
{
var file = DataDir | path;
if (isMustExist)
file.MustExistsPath();
return file;
return DataDir | path;
}
public bool EraseFile(string path)
{
@@ -154,7 +151,7 @@ namespace Convention
public ToolFile GetLogFile()
{
return this.GetFile(ConfigFile.GetName(true) + "_log.txt", true);
return this.GetFile(ConfigFile.GetName(true) + "_log.txt").MustExistsPath();
}
public ToolFile LogFile => GetLogFile();