Navigation
API > API/Editor > API/Editor/UnrealEd
References
| Module | UnrealEd |
| Header | /Engine/Source/Editor/UnrealEd/Public/SourceCodeNavigation.h |
| Include | #include "SourceCodeNavigation.h" |
Syntax
class FSourceCodeNavigation
Remarks
Source code navigation functionality
Functions
| Type | Name | Description | |
|---|---|---|---|
| FOnCompilerNotFound & | Call this to access the multi-cast delegate that you can register a callback with | ||
| FOnNewModuleAdded & | Call this to access the multi-cast delegate that you can register a callback with | ||
| FOnSymbolQueryFinished & | Call this to access the multi-cast delegate that you can register a callback with | ||
| void | AddNavigationHandler
(
ISourceCodeNavigationHandler* Handler |
Add a navigation handler | |
| bool | AddSourceFiles
(
const TArray< FString >& AbsoluteSourcePaths |
Add multiple source files to the current solution/project/workspace | |
| bool | CanNavigateToClass
(
const UClass* InClass |
Determines whether it is possible to navigate to the UClass in the IDE | |
| bool | CanNavigateToFunction
(
const UFunction* InFunction |
Determines whether it is possible to navigate to the UFunction in the IDE | |
| bool | CanNavigateToProperty
(
const FProperty* InProperty |
Determines whether it is possible to navigate to the FProperty in the IDE | |
| bool | CanNavigateToStruct
(
const UStruct* InStruct |
Determines whether it is possible to navigate to the UStruct in the IDE | |
| bool | CanNavigateToStruct
(
const UScriptStruct* InStruct |
Determines whether it is possible to navigate to the UScriptStruct in the IDE | |
| bool | Query if the current source code solution exists | ||
| void | DownloadAndInstallSuggestedIDE
(
FOnIDEInstallerDownloadComplete OnDownloadComplete |
Downloads and installs the suggested IDE (currently only works for Windows) | |
| bool | FindClassHeaderPath
(
const UField* InField, |
Finds the path to a given class header. Does not rely on symbols; finds matching .build.cs files. | |
| bool | FindClassModuleName
(
UClass* InClass, |
Attempt to locate fully qualified class module name | |
| bool | FindClassSourcePath
(
const UField* InField, |
Finds the path to a given class source. Does not rely on symbols; finds matching .build.cs files. | |
| bool | FindModulePath
(
const UPackage* InModulePackage, |
Finds the base directory for a given module. | |
| bool | FindModulePath
(
const FString& InModuleName, |
Finds the base directory for a given module name. | |
| void | GatherFunctionsForActors
(
TArray< AActor* >& Actors, |
Finds all of the functions in classes for the specified list of actors | |
| bool | Returns whether the suggested source code IDE for the current platform can be installed directly (vs. requiring that the user download it manually) | ||
| FSlateIcon | Returns the IDE specific representative icon to open source code | ||
| FSlateIcon | Returns the IDE specific representative icon to refresh source code | ||
| FText | Returns the name of the selected IDE | ||
| const FSourceFileDatabase & | Retrieves the SourceFileDatabase instance | ||
| FText | GetSuggestedSourceCodeIDE
(
bool bShortIDEName |
Returns the name of the suggested IDE, based on platform | |
| FString | Returns the url to the location where the suggested IDE can be downloaded | ||
| void | Initialize () |
Initializes FSourceCodeNavigation static class | |
| bool | Returns true if the compiler for the current platform is available for use | ||
| bool | NavigateToClass
(
const UClass* InClass |
Navigates asynchronously to the UClass in the IDE | |
| bool | NavigateToFunction
(
const UFunction* InFunction |
Navigates asynchronously to the UFunction in IDE | |
| bool | NavigateToFunctionAsync
(
UFunction* InFunction |
Deprecated, use NavigateToFunction | |
| void | NavigateToFunctionSourceAsync
(
const FString& FunctionSymbolName, |
Asynchronously locates the source file and line for a specific function in a specific module and navigates an external editing to that source line | |
| bool | NavigateToProperty
(
const FProperty* InProperty |
Navigates asynchronously to the FProperty in the IDE | |
| bool | NavigateToStruct
(
const UScriptStruct* InStruct |
Navigates asynchronously to the UScriptStruct in the IDE | |
| bool | NavigateToStruct
(
const UStruct* InStruct |
Navigates asynchronously to the UStruct in the IDE | |
| bool | Open the current source code solution | ||
| bool | OpenProjectSolution
(
const FString& InProjectPath |
Open the source code solution for the project at the given location | |
| bool | OpenSourceFile
(
const FString& AbsoluteSourcePath, |
Opens a single source file | |
| bool | OpenSourceFiles
(
const TArray< FString >& AbsoluteSourcePaths |
Opens a multiple source files | |
| void | Refresh the state of compiler availability. | ||
| void | RemoveNavigationHandler
(
ISourceCodeNavigationHandler* Handler |
Remove a navigation handler | |
| void | SetPreferredAccessor
(
const TCHAR* Name |
Set a new preferred accessor and refresh compiler status |
Classes
| Type | Name | Description | |
|---|---|---|---|
| EGatherMode | Gather modes for GatherFunctionsForActors() | ||
| FEditCodeMenuClass | Allows function symbols to be organized by class | ||
| FFunctionSymbolInfo | Holds useful information about a function's symbols |
Typedefs
| Name | Description |
|---|---|
| FOnCompilerNotFound | Delegate that's triggered when any symbol query has completed |
| FOnNewModuleAdded | Delegate that's triggered when a new module (.Build.cs file) has been added |
| FOnSymbolQueryFinished | Delegate that's triggered when any symbol query has completed |
Constants
| Name | Description |
|---|---|
| bCachedIsCompilerAvailable | Cached result of check for compiler availability. |
| CriticalSection | Critical section for locking access to the source file database. |
| Instance | Source file database instance. |