Favorites Search Filter
GameDataDirectory = new DirectoryInfo(Application.dataPath);
GameDirectory = GameDataDirectory.Parent;
Entering “fv:xyz” in the search bar loads xyz.txt from the game folder, and will match any of the lines in the file. Empty lines and lines starting with “//” (comments) are ignored. The .txt file extension was chosen because it is the notepad default.
Recursive usage of filters is supported, so multiple favorite searches can be nested, or other filter types e.g. “Tunnel mb:core” includes tunnels from the vanilla objects.
Root folder:
- MacOS: Unturned.app
- Windows/Linux: Folder that has the executable and Unturned_Data
Related:
Masterbundle Search Filter
Sources:
Application.dataPath
UnityPaths.cs
UnturnedPaths.cs
#search-filter