Description
The SourceLocation
property of the HammerSceneEditorSession
class provides access to the source location information associated with the current session. This property implements the Facepunch.ActionGraphs.ISourceLocation
interface, which typically includes details about the file or resource location within the editor environment.
Usage
Use the SourceLocation
property to retrieve or set the source location for a HammerSceneEditorSession
instance. This can be useful for tracking where the session's data originates from or for updating the source location as needed during the editing process.
Example
// Example of accessing the SourceLocation property
HammerSceneEditorSession session = new HammerSceneEditorSession();
Facepunch.ActionGraphs.ISourceLocation location = session.SourceLocation;
// Example of setting the SourceLocation property
session.SourceLocation = new CustomSourceLocation("path/to/source");