How neylsullivan/hazardtools works
Project Type and Purpose
• The README explicitly states that HazardTools is an “Unreal Engine plugin with a collection of developer tools.” This indicates that the project extends the Unreal Engine editor by adding additional tool modules.
• The plugin includes various developer tools such as Object Outliner enhancements, Package Flags customization, a Style Browser, and a Recent Assets button.
Key Components
• Configuration: Illustrate the presence of configuration through the Config directory (including FilterPlugin.ini) and any settings defined in the public headers (e.g., HazardToolsSettings.h). This indicates how the plugin can be configured.
• Submodules (Developer Tools): Break out the main tool areas into separate components:
• Object Outliner: Represent this module with its associated files (files related to ObjectOutliner, such as ObjectOutlinerFilter, ObjectOutlinerModel, SObjectOutliner, etc.), which likely handles customization of the object listing in the Unreal Editor.
• Package Flags: Represent this module with its associated source files (HazardToolsPackageFlags.cpp/h and related headers) which modify or control package-related behaviors.
• Style Browser: Represent this module with its dedicated files (files such as SStyleBrowser, StyleBrowserModel, StyleBrowserItem, and related settings files) to manage styling or theme aspects.
• Recent Assets Button: Represent this smaller module which likely integrates into the editor by adding a button for recent assets, as evidenced by its self-contained files.
• Build and Integration: Include a node for the build configuration (indicated by HazardTools.Build.cs) to show how the plugin is compiled as part of the Unreal Engine project/extension system.
Relationships and Interactions
• A bi-directional relationship between the Core Plugin Module and Unreal Engine. The plugin both receives events and data from, and then sends back enhanced functionality.
• How build configuration (Build.cs) impacts integration and dependency management.
Architectural Patterns and Design Principles
• Modular Design: The plugin is broken into distinct modules (sub-tools) that are loosely coupled but share the common framework of Unreal Engine’s extension system.
• Separation of Concerns: Each folder (e.g., ObjectOutliner, PackageFlags, StyleBrowser) contains code that is focused on a single tool or aspect of the plugin.
• Layered Integration: Clearly indicate that the lower level (configuration and build integration) supports higher-level modules that directly interact with the engine editor.
• Use clear labeling and organized grouping (e.g., grouping all files and functionalities related to Object Outliner together).
• Surround it with nodes for each of the tools (Object Outliner, Package Flags, Style Browser, Recent Assets Button).
• Optionally, include a node for “Build Integration” to represent the build scripts (HazardTools.Build.cs) and show their linkage to the overall system.