UCefView
Loading...
Searching...
No Matches
FLocalFolderResourceMapping

Represents a mapping from a local folder to a URL for resource loading in the CEF browser. More...

#include <CefViewTypes.h>

Public Member Functions

bool operator== (const FLocalFolderResourceMapping &Other)
 Equality operator for comparing two FLocalFolderResourceMapping objects.
 
bool operator!= (const FLocalFolderResourceMapping &Other)
 Inequality operator for comparing two FLocalFolderResourceMapping objects.
 

Public Attributes

FString Url
 The target URL to be mapped to.
 
FDirectoryPath Path
 The folder containing the resources to be mapped.
 
int32 Priority = 0
 The priority of the mapping.
 

Detailed Description

Represents a mapping from a local folder to a URL for resource loading in the CEF browser.

This struct is used to expose static assets (such as HTML, JavaScript, CSS, images) from a local directory to the browser via a virtual URL.

The mapping allows the browser to load resources as if they were hosted remotely, enabling offline or packaged web applications.

Mapping.Url = TEXT("http://myapp.local/");
Mapping.Path.Path = TEXT("WebAssets");
Mapping.Priority = 1;
Represents a mapping from a local folder to a URL for resource loading in the CEF browser.
Definition CefViewTypes.h:199
FDirectoryPath Path
The folder containing the resources to be mapped.
Definition CefViewTypes.h:227
int32 Priority
The priority of the mapping.
Definition CefViewTypes.h:239
FString Url
The target URL to be mapped to.
Definition CefViewTypes.h:213

Member Function Documentation

◆ operator!=()

bool FLocalFolderResourceMapping::operator!= ( const FLocalFolderResourceMapping & Other)
inline

Inequality operator for comparing two FLocalFolderResourceMapping objects.

Parameters
OtherThe other mapping to compare with.
Returns
True if the mappings are not equal, false otherwise.

Returns true if any of the Url, Path, or Priority fields differ.

◆ operator==()

bool FLocalFolderResourceMapping::operator== ( const FLocalFolderResourceMapping & Other)
inline

Equality operator for comparing two FLocalFolderResourceMapping objects.

Parameters
OtherThe other mapping to compare with.
Returns
True if the mappings are equal, false otherwise.

Two mappings are considered equal if their Url, Path, and Priority are all identical.

Member Data Documentation

◆ Path

FDirectoryPath FLocalFolderResourceMapping::Path

The folder containing the resources to be mapped.

The path value must be relative to the game content directory (e.g., "WebAssets"). All files within this folder will be accessible via the specified Url.

◆ Priority

int32 FLocalFolderResourceMapping::Priority = 0

The priority of the mapping.

Higher priority mappings take precedence when multiple mappings overlap.

◆ Url

FString FLocalFolderResourceMapping::Url

The target URL to be mapped to.

This is the virtual URL that the browser will use to access resources from the specified local folder. Example: "http://myapp.local/"