
Visualizer Components
Visualizer components are editor only components which helps us draw non-rendering debug information to the screen or HUD, this is more like a modular, lightweight, debug component that does not get shipped with packaged game. Creating An Editor Module To Create an editor module, you need to create a new folder with same name as your runtime module but postfix it by “Ed” or “Editor” for example: Have the following files inside your module folder: \Private\CustomModuleEd.cpp \Public\CustomModuleEd.h CustomModuleEd.Build.cs In your build.cs file: using UnrealBuildTool; public class CustomModuleEd : ModuleRules { public CustomModuleEd(ReadOnlyTargetRules Target) : base(Target) { PrivateDependencyModuleNames.AddRange(new string[] { "Core", "CoreUObject", "Engine", "Slate", "SlateCore", "UnrealEd", "ComponentVisualizers" }); } } And here is how your editor module class should look like: #pragma once #include "Modules/ModuleInterface.h" #include "Modules/ModuleManager.h" class FCustomModuleE
Continue reading on Dev.to
Opens in a new tab


