![]() |
UCefView
|
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. | |
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.
|
inline |
Inequality operator for comparing two FLocalFolderResourceMapping objects.
Other | The other mapping to compare with. |
Returns true if any of the Url, Path, or Priority fields differ.
|
inline |
Equality operator for comparing two FLocalFolderResourceMapping objects.
Other | The other mapping to compare with. |
Two mappings are considered equal if their Url, Path, and Priority are all identical.
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.
int32 FLocalFolderResourceMapping::Priority = 0 |
The priority of the mapping.
Higher priority mappings take precedence when multiple mappings overlap.
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/"