The GetSearchPaths
method in the Editor.EditorUtility
class retrieves all the search paths used by the editor. These paths are returned as a single string, with each path separated by a semicolon (;
).
The GetSearchPaths
method in the Editor.EditorUtility
class retrieves all the search paths used by the editor. These paths are returned as a single string, with each path separated by a semicolon (;
).
Use this method when you need to obtain a list of all search paths currently configured in the editor environment. This can be useful for debugging or for dynamically loading resources from different directories.
// Example usage of GetSearchPaths string searchPaths = Editor.EditorUtility.GetSearchPaths(); // Output the search paths // Note: Avoid using Console.WriteLine in Sandbox environment // Use appropriate logging or debugging methods instead Log.Info(searchPaths);