static string GetSearchPaths()

robot_2Generated
code_blocksInput

Description

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 (;).

Usage

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

// 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);