Quartz UI ↗
Browse docs
On this page
Private preview · 0.57.0-devView Markdown

QuartzUIEditorDevTools: declaration reference

0.57.0-dev · beta source documentation. Native, Blueprint, Editor and rendering examples are source-reviewed, not executed in Unreal during this scan. See validation and limits.

Pinned source (source: Source/QuartzUIEditor/Public/QuartzUIEditorDevTools.h) · integration recipe · practical guide

FQuartzUIEditorDevToolsTarget

Editor type. Editor Dev Tools Target: a declared type in live browser target discovery and inspector launch; use its exact fields/operations below.

Prerequisites / integration: Installed source plugin; Editor tools additionally require a compiled compatible host Editor target. Use the QuartzUIEditorDevTools recipe in the host module QuartzUIEditor.

Minimal example / lifecycle: Tools > Quartz UI > Open DevTools after PIE creates a page. Async discovery cancels on module teardown.

Avoid: Counting a blank inspector or port log as a passed connection. Match the exact declaration below; dependent DTOs/enums are values used by this owner, not independent systems.

Exact source line (source: Source/QuartzUIEditor/Public/QuartzUIEditorDevTools.h#L5)

FQuartzUIEditorDevTools

Editor type. Pure policy helpers shared by the editor module and automation.

Prerequisites / integration: Installed source plugin; Editor tools additionally require a compiled compatible host Editor target. Use the QuartzUIEditorDevTools recipe in the host module QuartzUIEditor.

Minimal example / lifecycle: Tools > Quartz UI > Open DevTools after PIE creates a page. Async discovery cancels on module teardown.

Avoid: Counting a blank inspector or port log as a passed connection. Match the exact declaration below; dependent DTOs/enums are values used by this owner, not independent systems.

Exact source line (source: Source/QuartzUIEditor/Public/QuartzUIEditorDevTools.h#L13)

Complete header

Source snapshot, not an additional example. Unreal annotations distinguish exposed Blueprint nodes from native-only/private methods.

#pragma once

#include "CoreMinimal.h"

struct QUARTZUIEDITOR_API FQuartzUIEditorDevToolsTarget
{
	FString Title;
	FString PageUrl;
	FString InspectorUrl;
};

/** Pure policy helpers shared by the editor module and automation. */
class QUARTZUIEDITOR_API FQuartzUIEditorDevTools final
{
public:
	static constexpr uint16 DefaultPort = 9222;

	static uint16 SanitizePort(int32 Port);
	static FString MakeUrl(uint16 Port);
	static FString MakeDiscoveryUrl(uint16 Port);
	/** Reads CEF's supported discovery endpoint; never relies on its optional HTML index. */
	static bool ParseTargets(const FString& Json, uint16 Port, TArray<FQuartzUIEditorDevToolsTarget>& OutTargets);
	static FString MakeCommandLineArgument(uint16 Port);
	static bool TryParsePort(const FString& CommandLine, uint16& OutPort);

	/** Preserves an existing -cefdebug value or appends the requested port before CEF initializes. */
	static uint16 EnsureCommandLinePort(uint16 RequestedPort);
};