Repository navigation
Releases
UnrealSense 1.2.2
UnrealSense 1.2.2: all changes from 1.2.1 to 1.2.2.
Quick Menu
- Suggested section first: the fixes of the UnrealSense errors and warnings at the caret (else on its line; errors
first, nearest first, up to 5, each with its message), then the command that is the obvious next step there: Create
Implementation on a declaration without a body or a missing bound function, Introduce Variable / Extract Method on a
selection they accept, Generate Missing Cases on a switch line, Override Virtual Functions on a class name,
Generate Getters/Setters on a member missing them. The first row is selected: Alt+Shift+Q, Enter applies it. - The Quick Menu now holds only the commands for searching, writing and creating code. Unreal Explorer, UnrealSense
Problems, Open Files, Move to File Group, Launch Presets, Open Blueprints in Unreal Editor, Rebuild UnrealSense
Index, Code Templates, Import/Export Settings and Restore Visual Studio Indexing are in Extensions > UnrealSense.
Open in Unreal Editor stays on the Unreal Explorer toolbar.
Launch presets
- A Launch Preset box on Visual Studio's Standard toolbar picks the command-line arguments F5 / Ctrl+F5 run the game
or editor with (-game -log, -windowed -ResX=1280 -ResY=720, -server...). Edit Presets... (last entry of the box, the
button next to it, or Extensions > UnrealSense > Launch Presets...) creates, duplicates, reorders and edits them.
Open files by group
- Off by default: Extensions > UnrealSense > Group Open Files (checked while on) or the option Open Files > Group open
files. Works with a solution or a .uproject (or a folder) open. - The Open Files window lists the open files under Project, Engine and your own groups (New Group, Move to File
Group... on a document tab); the option can also move them into Visual Studio's own tab groups, side by side.
Code editing
- Override Virtual Functions (and the GetLifetimeReplicatedProps fix) appends to the class's existing
public:/protected:/private: section, so no duplicate access label is written.
UnrealSense 1.2.1
UnrealSense 1.2.1: all changes from 1.2.0 to 1.2.1.
Perforce
- Reconcile on the UnrealSense Perforce toolbar: finds the text files of the project (code, scripts, config: .h, .cpp,
.inl, .as, .cs, .ini, .uproject, .uplugin, shaders...) changed, added or deleted outside Perforce, in the project's
Source, Plugins, Config, Script and Build folders. Assets are never looked at, nor Intermediate, Binaries, Saved and
DerivedDataCache. - A dialog lists every file found with its action (edit, add, delete): uncheck the ones to leave alone (All/None), pick
the changelist (default, a pending one or a new one) and press Reconcile. - Option "Reconcile text files in Content" (Tools > Options > UnrealSense > Perforce, off by default): also the text
files inside Content folders (.json, .txt, .py...); assets never.
Code editing
- Parameter Info shows the default values written in the declaration ("= 0", "= nullptr"...), as Quick Info does.
- Typing "::" after a name typed by hand (e.g. FMath::) lists the scope's members instead of filtering the open list.
UnrealSense 1.2.0
UnrealSense 1.2.0: all changes from 1.1.29 to 1.2.0.
Perforce auto-checkout (off by default)
- Turn it on with Extensions > UnrealSense > Perforce Auto-Checkout (ticked while on) or Tools > Options > UnrealSense >
Perforce. In a Perforce workspace UnrealSense becomes the source control provider; the workspace is found from the
file's path, no setup. - Editing a read-only file asks where to check it out: default, an existing changelist, a new changelist, Make writable
only, or Cancel (the edit stays in memory and saving asks again). "Use this changelist without asking" skips the dialog
for the rest of the session. Save All keeps saving the other files when one is cancelled. - UnrealSense Perforce toolbar, document tab and Solution Explorer context menus: Checkout, Add, Revert (asks first), Diff
against the depot revision, Diff (P4V), Timelapse. - New files added to a project are offered for add with the same changelist choice; New Unreal Class has its own
Changelist drop-down (or Don't add to Perforce) and checks out the .Build.cs it changes. - Expired ticket: login dialog. Every p4 command is listed in Output > UnrealSense Perforce.
- Ported from the separate Perforce Auto-Checkout extension (1.5.3): uninstall that one, two providers make Visual Studio
pick one.
Menus
- Extensions > UnrealSense lists only what the Quick Menu does not: Quick Menu, IntelliSense Mode..., Import Shortcuts...,
Perforce Auto-Checkout. Every other command is in the Quick Menu (Alt+Shift+Q) and keeps its keys and context menus.
UnrealSense 1.1.29
UnrealSense 1.1.29: all changes from 1.1.28 to 1.1.29.
Code templates
- cvar, in a .cpp outside every function and class (file or namespace scope): static TAutoConsoleVariable
CVarMyVariable(TEXT("Game.MyVariable"), 0, TEXT("Description"), ECVF_Default); read with GetValueOnGameThread(). - refCvar, in the same place: static int32 GMyVariable = 0; and the FAutoConsoleVariableRef CVarMyVariable bound to it,
so the code reads GMyVariable directly. - Both: Tab goes through type, name, console command, value, help and flags; the name is typed once and fills every
copy; #include "HAL/IConsoleManager.h" is added when missing. Not offered inside functions, classes or headers. - Code Templates window: your own templates can be offered "Outside functions" (file or namespace scope). A template
saved with that choice is skipped by older UnrealSense versions. - Log: "Templates: first file-scope list with cvar, refCvar".
New Unreal Class
- Add Interface... picks UINTERFACEs of the project, its plugins and the engine for the new class to implement: each adds
", public IName" and its header; a module the .Build.cs lacks is offered like the parent's. - The base folder starts on Public, unless the start folder is in Private or a root sub-folder.
- The dialog can be resized: the parent list takes the extra height.
UnrealSense 1.1.28
UnrealSense 1.1.28: all changes from 1.1.25 to 1.1.28 (1.1.26 and 1.1.27 were internal builds).
AngelScript
- The project's, plugins' and engine plugins' .as scripts are in the file index: Find in Files, the Go to Text tab and
Go to File see them. - Find Usages lists a C++ symbol's uses in the scripts under "Scripts (AngelScript)", by symbol and as the scripts write
it (Gameplay:: for UGameplayStatics, ActorLocation for GetActorLocation(), BeginPlay overrides for ReceiveBeginPlay);
uses whose object type is not known are listed under their own "Uncertain". Started from a .as file, it lists a C++
symbol's C++, Blueprint and script uses, or a script class, function or variable's script uses. - Editing .as files: colours like C++ (types, functions, fields, enum values, locals), F12 / Ctrl+click to the script
declaration or the C++ one of a bound function, class or overridden event, completion after "." and "::" and of
locals, members and types elsewhere, Shift+F12 for Find Usages, Ctrl+K Ctrl+C / Ctrl+K Ctrl+U, bracket matching. - Option: AngelScript support (Auto/Off). Log lines start with "AngelScript:".
Settings
- Extensions > UnrealSense > Export Settings... / Import Settings... (also in the Quick Menu): options, the keys of every
UnrealSense command, your code templates (and which of ours you hid) and the colours you changed in Fonts and Colors,
in one .ussettings file. - Import lists every difference with the settings in use, part by part, each with a check box: nothing changes until
Import. Values left at their default import as the default of the version that imports them; keys are stored in
English and work in a Visual Studio of any language; files of older and newer versions import what this version knows
and say what was skipped. Templates are added or replace yours of the same name, never deleted. - Before importing, the settings in use are saved in %LOCALAPPDATA%\UnrealSense\Settings (the last ten): importing that
file undoes the import. Log lines start with "Settings:".
Create a missing bound function
- A function bound with UEnhancedInputComponent::BindAction is created as void Name(const FInputActionValue& Value),
also from a subclass of the input component calling the inherited BindAction and through your own bind wrappers.
Before, it could take the signature of an unrelated engine type named like the binder's template parameter.
UnrealSense 1.1.25
UnrealSense 1.1.25: all changes from 1.1.24 to 1.1.25.
Blueprint usages
- The Content of the engine's plugins that are not Epic's (CreatedBy in the .uplugin), can hold content and are turned on
by the .uproject or by default is read with the project's: a widget Blueprint inside a studio plugin kept under
Engine/Plugins now counts as a usage of its C++ class (Find Blueprint Usages, hints, values set in Blueprints).
UnrealSense 1.1.22
UnrealSense 1.1.22: all changes from 1.1.21 to 1.1.22.
Code templates
- Code Templates... (Extensions > UnrealSense, Quick Menu): a window listing our templates and yours. New or Duplicate
gives you a template to edit: a shortcut typed on its own (mylog) or a suffix after a value (Health.dbg), offered
inside functions, inside classes or both, in .h, .cpp or both. Buttons add a field filled with Tab, the caret at the
end, the log category and, for a suffix, the value and its UE_LOG format; the bottom of the window shows the result. - A field written more than once is filled once: its copies follow as you type.
- Export... writes your templates to a .ustemplates file, Import... adds the ones of a file (keep both, replace or skip
the names you already have). - Clear the box of one of ours to stop it being offered.
- New templates in a class body: ptr (UPROPERTY() TObjectPtr Object;) and softptr (TSoftObjectPtr), class and
name filled with Tab. - Completion: a template typed as a name comes before the other names that match.
New Unreal Class
- The folder picker (the ... button next to the path) shows each folder's files after its sub-folders.
- New Folder (Ctrl+Shift+N) adds a sub-folder in the picker: it is created when you confirm the class (under both
Public and Private for a Public header), and nothing is created if you cancel. The dialog lists the folders OK creates.
Find in Files
- The file filter also takes part of a file name: "hor" searches only HorrorCharacter.h/.cpp, "hor;h" only the header.
Navigation
- Go to definition finds definitions the index does not have yet (a body just written by Create Implementation, or
saved before the index update) instead of falling back to Visual Studio's, which opened the base class's function. - A declaration just added to a header no longer goes to the base class's function of the same name.
Updates
- The update notice opens Manage Extensions on every Visual Studio version.
UnrealSense 1.1.21
UnrealSense 1.1.21: all changes from 1.1.20 to 1.1.21.
Navigation
- Go to: new Config tab (Ctrl+6, the Go to tabs are now Ctrl+1...6) with a text search of the .ini lines of the project,
plugins and engine: every word must be on the line ("max walk" finds MaxWalkSpeed=600). - Find Usages lists the name's lines in the .ini files apart, under "Config (.ini)" (a class also by its name without
prefix, as config writes it: /Script/MyGame.MyActor). - Go to File lists every match (up to 5,000 instead of 150), in alphabetical order with the best one selected; result
lists have no fixed size, scroll to the end for more.
Code
- ctor template: typed where a member is declared in a class body, it offers the standard constructor declaration and,
in UCLASS classes, the one taking const FObjectInitializer& (to replace or skip the parent's default subobjects). Only
the constructors the class does not have yet are listed; Alt+Shift+D writes the body. - Create missing bound functions from any call: your own bind helpers too (template wrappers are followed to the function
they pass it to) and any UMyClass::Name or ThisClass::Name of a function that does not exist. When the signature cannot
be found the function is created as void Name() with a warning to add its parameters. - Completion tooltips and Quick Info show the comment above a declaration and, for enum values and fields, the one beside
them. - Specifier completion writes ", " between specifiers and " = " before a value.
Source control
- Read-only files (Rename, enabling Remote Execution...) are checked out through the active source control provider
(Perforce Auto-Checkout, P4VS) when one is active; otherwise they are made writable and listed, as before.
Errors as you type
- Engine and plugin files: far fewer false errors (CPP0007 on SDK headers and ## token pasting, concepts, locals, shader
parameter structs; CPP0005/6/10).
Performance
- The log is written by a background thread in batches; after a solution switch, restored documents are re-analysed a
few at a time instead of all at once (thread-pool starvation seen while Visual Studio was starting a build).
UnrealSense 1.1.20
UnrealSense 1.1.20: all changes from 1.1.19 to 1.1.20.
Errors as you type (IntelliSense mode "Turn Visual Studio's IntelliSense off", experimental)
- The checks below run only in that mode, where nothing else reports errors while typing; they are held back while a line
is being typed and shown once typing pauses. - CPP0010: an out-of-class definition (void AMyActor::Foo(int32 X) { }) that no declaration of the class matches (a name or
the number of parameters changed on one side only). - CPP0015: "return;" in a function that returns a value, or a value returned from a void function.
- CPP0007 on misspelt types: the class of an out-of-class definition, return and parameter types of definitions, template
arguments of local declarations; after "Class::" a member the class declares nowhere. - CPP0007 on a name that exists only as a member of other classes ("Count = Health;" in a function of a class without a
Health member): before, any namesake anywhere in the project or the engine kept the name silent. - CPP0014 / CPP0012: a value that cannot be converted to the type it initialises, is assigned to, is returned as or is
passed for (arguments of member functions with one declaration): FString/FName/FText into each other or into numbers,
a pointer to a class that is not the same class or a base, const dropped from a pointer, a scoped enum and a number,
two different enums. Only between declared variables and calls of functions without overloads; templates, literals and
overloaded functions are left to the compiler (compile on save).
Engine and plugin files
- The checks that run in every mode (unknown members, argument counts, missing #includes, Super:: calls...) report far
fewer false errors on engine and plugin files, which matters with a source build of the engine.
Code
- Range-for over a TMap, TMultiMap...: "auto& Pair" is a pair whose Key and Value are completed and navigated.
- Quick Info and completion tooltips colour the declaration with the editor's colours.
- check/checkf/ensure/verify are coloured as macros at once, int32/uint8/TCHAR... as typedefs.
- Add #include without a compile database spells a header of another module from its Public/Classes folder instead of a
relative path.
Fixes
- The own index gave up when another UnrealBuildTool was running (ConflictingInstance): it now retries every 15 s for up
to 30 minutes. - A member declared after UE_DEPRECATED_FORGAME(...) (and after any macro that is another name for a decorative macro)
was missing from the index. - A function whose body is a macro expanding to a block no longer hides the members declared after it.
UnrealSense 1.1.19
UnrealSense 1.1.19: all changes from 1.1.17 to 1.1.19 (1.1.18 was a pre-release built from a test branch; everything in it
is included here).
Find in Files
- New Find in Files... window (Extensions > UnrealSense and the Quick Menu, prefilled with the selection or the word at the
caret): searches text in the files of the Unreal project (sources, plugins, config, framework modules outside Source/)
and the engine, the project only, the open documents (with their unsaved changes) or the current file. Match case, Whole
word, Regex (^ and $ per line) and file types (.h;.cpp;!*.generated.h). Results stream in grouped by file, with syntax
colours and every match marked; double-click or Enter opens the line. - Option "Ctrl+Shift+F opens UnrealSense's Find in Files" (Go to Symbol / File, off by default): Visual Studio's Find in
Files key and menu open UnrealSense's while an Unreal project is open; the window's button still opens Visual Studio's. - The Go to popup has a Text tab (Ctrl+5): text in the project's files, then the engine's, as you type; Shift+Enter hands
the search to the Find in Files window.
Inspections
- UE0019/UE0020: types UHT cannot expose in a UPROPERTY or in a UFUNCTION parameter or return type: a project enum, struct
or class without UENUM/USTRUCT/UCLASS (fix: adds the macro, also in another header), a non-dynamic delegate,
TSharedPtr/TWeakPtr/TUniquePtr/TFunction/TVariant/TMultiMap, std:: types, a pointer to a struct, enum, FString or number,
an interface pointer (fix: TScriptInterface), nested containers; on Blueprint-exposed members int8/int16/uint16/
uint32/uint64 (fix: int32/int64), and UENUM(BlueprintType) on an enum class not based on uint8 (fix: ": uint8").
Code
- Completion: choosing a function writes Name() with the caret inside and Parameter Info open (after the ")" when it takes
no arguments); a ")" typed right before the inserted one steps over it. Not added after "&", in definitions, in
reflection specifiers, before an existing "(" or for templates whose must be written. Option Code completion > Add ()
when completing a function. - Create Implementation (Alt+Shift+D) on a bound function that does not exist yet (AddDynamic, AddUObject, SetTimer,
BindAction...) creates it in the class, like the light bulb's "Create 'X' in UMyClass". - Go to definition (Ctrl+click, F12) on an #include line opens the header, resolved like the compiler.
- Add #include on a macro adds the header that #defines it.
Fixes
- Engine and engine plugin files changed on disk (a Perforce revert) were not picked up by the own index until Visual
Studio restarted. - The indexer recovers from an if/while/switch condition missing its ")" instead of misreading the rest of the function.