Unreal Engine
What
Display the Unreal Engine version of the current project.
The segment looks for a .uproject file in the current directory or any parent directory, so it also works from
project subfolders. It reads EngineAssociation and, on Windows, resolves the matching engine installation from the
registry (Launcher installs and registered source builds) to read the full major.minor.patch version from
Engine/Build/Build.version. When the installation or version cannot be resolved, the raw EngineAssociation value
is displayed instead. Registry lookups are read-only and need no elevation.
Engine source checkouts are recognized directly through their Engine/Build/Build.version file. The segment is hidden
outside Unreal projects and engine directories.
Configure the built-in segment cache to avoid repeating filesystem and registry lookups on every prompt. The folder
strategy caches by the current working directory. Choose a duration that matches how often the project or engine
installation changes.
Sample Configuration
- json
- yaml
- toml
Template (info)
- json
- yaml
- toml
{
"template": " {{ .Version }} "
}
template: " {{ .Version }} "
template = " {{ .Version }} "
Properties
| Name | Type | Description |
|---|---|---|
.Version | string | the engine version, or the raw engine association as a fallback |