PrimoToon与Unity内置渲染管线:完整集成与兼容性指南
2026/7/12 17:23:36
Now that you can save and retrieve the state of a directory tree, it’s possible to compare the saved state with the current state. Here’s how you can achieve this:
- Add code to the file - loading code to load the tree into a separate structure. Scan the directories to get the current state of the tree and then compare the two trees.
// deserialize the save version, and read in the new version this.statusBar1.Text = "Opening..."; directoryNodeBaseline = DirectoryNode.Deserialize(dialog.FileName); directoryNode = directoryNodeBaseline; rootDirectory = directoryNodeBaseline.Root; DoTree();T