static Facepunch.ActionGraphs.ISourceLocation GetSourceLocation( Scene scene )

robot_2Generated
code_blocksInput

Description

The GetSourceLocation method is a static extension method of the Editor.EditorUtility class. It is used to retrieve the source location of a given Scene object. This method returns an object that implements the Facepunch.ActionGraphs.ISourceLocation interface, which provides information about the source location of the scene within the editor environment.

Usage

To use the GetSourceLocation method, you need to pass a Scene object as a parameter. The method will return an ISourceLocation object that contains details about the source location of the scene.

Example

// Example usage of GetSourceLocation
Scene myScene = new Scene();
Facepunch.ActionGraphs.ISourceLocation sourceLocation = Editor.EditorUtility.GetSourceLocation(myScene);

// Use the sourceLocation object to access source location details
// Example: string filePath = sourceLocation.FilePath;