Skip to content

Types & enums

Blueprint-exposed enums and structs provided by the plugin. All are usable from C++ and Blueprint.

EWebHUDAnchor

UENUM(BlueprintType) — Source: SampleProject/Plugins/UnrealReactBridge/Source/UnrealReactBridge/Public/WebHUDAnchor.h

The anchor position passed to Add Web HUD. Determines where on the viewport the HUD layer is pinned and how Padding is interpreted.

ValuePosition
TopLeft (default)corner
TopCentertop edge midpoint
TopRightcorner
MiddleLeftleft edge midpoint
Centerviewport center; ignores Padding
MiddleRightright edge midpoint
BottomLeftcorner
BottomCenterbottom edge midpoint
BottomRightcorner
text
┌────────────────────────────────────────┐
│ TopLeft       TopCenter      TopRight  │
│                                        │
│ MiddleLeft     Center      MiddleRight │
│                                        │
│ BottomLeft  BottomCenter  BottomRight  │
└────────────────────────────────────────┘

For corner anchors Padding is the inset toward the viewport interior; the layout subsystem auto-flips the sign for right / bottom anchors so positive padding always pushes inward. Center ignores Padding.

FWebHUDHandle

USTRUCT(BlueprintType) — Source: SampleProject/Plugins/UnrealReactBridge/Source/UnrealReactBridge/Public/WebHUDHandle.h

Returned by Add Web HUD. Identifies a live HUD layer; pass to Remove Web HUD to tear it down.

Fields

FieldTypeNotes
NameFNameThe identifier passed to Add Web HUD
LayerTWeakObjectPtr<UWebHUDLayer>Non-BP-exposed back-pointer to the underlying layer widget

Methods

MethodReturnsNotes
IsValid()boolTrue iff Name is set and the layer is still alive

In Blueprint, check Handle.Name != None if you don't have direct access to IsValid.

EBridgeErrorType

UENUM(BlueprintType) — Source: SampleProject/Plugins/UnrealReactBridge/Source/UnrealReactBridge/Public/UnrealReactBridgeTypes.h

Surfaced through the OnBridgeError delegate on WebHUDWidget and the Subsystem.

ValueWhen
WebBrowserNullRequired WebBrowser widget not found in WBP
ReactNotReadyEvent sent before lifecycle step 5
JSONParseErrorJsonData argument is not valid JSON
JavaScriptErrorScript error in the loaded page
EventQueueFullBuffer overflowed (raise MaxEventQueueSize or send less)
NetworkErrorPage failed to load (URL / host unreachable)
UnknownCatch-all

FBridgeErrorInfo

USTRUCT(BlueprintType) — Source: SampleProject/Plugins/UnrealReactBridge/Source/UnrealReactBridge/Public/UnrealReactBridgeTypes.h

Payload struct dispatched alongside EBridgeErrorType on error delegates.

FieldTypeNotes
ErrorTypeEBridgeErrorTypethe case above
ErrorMessageFStringhuman-readable summary
AdditionalInfoFStringextra context (event name, URL, JSON snippet, …)
TimestampFDateTimewhen it occurred

See also

Released under the MIT License.