This repository has been archived by the owner on Oct 31, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 413
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added second cache system that does not directly work on an asset but…
… instead saves the canvas at a specified interval and at NodeEditor shutdown This enables future undo support (Undo does not work on assets) and is significantly faster, especially when creating nodes. But is not completely safe when Unity crashes, as it will revert to the last cache save, depending on the set cache interval (default 1min). A small stutter occurs when caching, so it should not be too frequent, but caching is prohibited while user performs an action (dragging,...) so it's not always noticeable. It is possible to revert back to the old cache system if desired by uncommenting the first line '#define EDITOR_CACHE_ASSET' in NodeEditorUserCache.cs
- Loading branch information
Seneral
committed
Jan 9, 2017
1 parent
a4e8a3e
commit 50b28a3
Showing
3 changed files
with
78 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters