Blueprint Inspector

botman99 - Code Plugins - Mar 15, 2023

Displays information about Blueprint assets in Visual Studio via CodeLens.

  • Supported Platforms
  • Supported Engine Versions
    4.27, 5.0 - 5.3
  • Download Type
    Engine Plugin
    This product contains a code plugin, complete with pre-built binaries and all its source code that integrates with Unreal Engine, which can be installed to an engine version of your choice then enabled on a per-project basis.

Blueprint Inspector is a Visual Studio tool to display information about which Blueprint assets use native C++ functions via CodeLens. The list of Blueprint assets contains the path name of that asset along with a counter to tell you how many times that Blueprint asset calls that specific function. You are able to copy the list of Blueprint assets to the Windows clipboard (along with the C++ class name and function name being called). If you have the editor running, you can double click on a Blueprint asset in Visual Studio and it will automatically open that Blueprint asset in the editor and will set focus to the Node calling that function.


Installing:


  1. If using the Epic Games Launcher, click the "Free" button and then "Install to Engine" above and select the engine version to install this plugin.
  2. If using the Marketplace website, you can add this plugin to your account and then you can install it from the Epic Games Launcher (see step 1 above).
  3. You will need to install the Visual Studio 'Blueprint Inspector' extension for Visual Studio 2019 or Visual Studio 2022:


The best way to install the 'Blueprint Inspector' extension is from within Visual Studio. Use 'Extensions' -> 'Manage Extensions' from the Visual Studio main menu, then in the 'Online' section, search for "Blueprint Inspector" (without the quotes). Click on the "Download" button for it to install it. This will allow the extension to auto-update itself when new versions are released.


You can also download the extension .vsix installer file and install it locally if you want from these links (but it won't auto-update itself):


Visual Studio 2019 extension

Visual Studio 2022 extension


Enable the plugin:


To enable the plugin, run the Unreal editor and use 'Edit' -> 'Plugins' from the editor main menu to search for the "Blueprint Inspector" plugin and check the 'Enabled' checkbox, then click the 'Restart Now' button.


Using the Blueprint Inspector:


After both the Unreal plugin and Visual Studio extension have been installed, open your project's solution file (*.sln) in Visual Studio. Click on 'Extensions' in the Visual Studio main menu, then in the 'Blueprint Inspector' menu item, click on 'Generate JSON File'. Click the "OK" button to begin running the Blueprint Inspector commandlet which will generate a JSON file containing Blueprint asset information. You may have to restart Visual Studio once the JSON file has been generated. At that point, when you open a .h file or .cpp file that contains a Blueprint native function you should see the CodeLens information displayed immediately above the function name (it will look like "x Blueprint assets", where x is the number of Blueprint assets that call this function.


You can click on the "x Blueprint assets" item to pop up the list of Blueprint assets. This list will be the path to the Blueprint asset file and there will be a count (in parenthesis) that tells you how many times that Blueprint asset calls this specific function.


If you have added, removed or modified Blueprint assets, or you have added, removed or modified Blueprint functions, you will need to generate the JSON file again. After the JSON file has been generated the Visual Studio extension is smart enough to let you know when you need to restart Visual Studio (just modifying Blueprint assets and not modifying Blueprint code should not require you to restart Visual Studio).


More detailed instructions can be found here: https://github.com/botman99/BlueprintInspector


Reporting Issues: Please report any questions/issue in the 'Questions' section of the Unreal Engine Marketplace.

Technical Details

Features: Displays information about Blueprint assets in Visual Studio via CodeLens. 

Code Modules: BlueprintInspector (Windows Editor only) 

Number of Blueprints: 0

Number of C++ Classes: 2

Network Replicated: No

Supported Development Platforms: Win64 (Editor only)

Supported Target Build Platforms: None (Editor only)

Documentation: https://github.com/botman99/BlueprintInspector

Example Project: No example project provided

Important/Additional Notes: None