Navigation
API > API/Runtime > API/Runtime/WebBrowserTexture
Implements a texture asset for rendering webbrowser output for Android.
probably should have derived from UTexture2DDynamic (not UTexture)
| Name | UWebBrowserTexture |
| Type | class |
| Header File | /Engine/Source/Runtime/WebBrowserTexture/Public/WebBrowserTexture.h |
| Include Path | #include "WebBrowserTexture.h" |
Syntax
UCLASS (HideCategories=(Adjustments, Compositing, LevelOfDetail, Object))
class UWebBrowserTexture : public UTexture
Inheritance Hierarchy
- UObjectBase → UObjectBaseUtility → UObject → UStreamableRenderAsset → UTexture → UWebBrowserTexture
Implements Interfaces
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
UWebBrowserTexture
(
const FObjectInitializer& ObjectInitializer |
WebBrowserTexture.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| AddressX | TEnumAsByte< TextureAddress > | The addressing mode to use for the X axis. | WebBrowserTexture.h | |
| AddressY | TEnumAsByte< TextureAddress > | The addressing mode to use for the Y axis. | WebBrowserTexture.h | |
| AutoClear | bool | Whether to clear the texture when no media is being played (default = enabled). | WebBrowserTexture.h | |
| ClearColor | FLinearColor | The color used to clear the texture if AutoClear is enabled (default = black). | WebBrowserTexture.h |
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| Dimensions | FIntPoint | Current width and height of the resource (in pixels). | WebBrowserTexture.h | |
| SampleQueue | TSharedPtr< FWebBrowserTextureSampleQueue, ESPMode::ThreadSafe > | Texture sample queue. | WebBrowserTexture.h | |
| Size | SIZE_T | Current size of the resource (in bytes). | WebBrowserTexture.h | |
| WebPlayerGuid | FGuid | The previously used player GUID. | WebBrowserTexture.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
virtual void BeginDestroy() |
WebBrowserTexture.h | ||
virtual FTextureResource * CreateResource() |
WebBrowserTexture.h | ||
float GetAspectRatio () |
Gets the current aspect ratio of the texture. | WebBrowserTexture.h | |
virtual FString GetDesc() |
WebBrowserTexture.h | ||
virtual FGuid GetExternalTextureGuid() |
WebBrowserTexture.h | ||
int32 GetHeight () |
Gets the current height of the texture. | WebBrowserTexture.h | |
virtual EMaterialValueType GetMaterialType() |
WebBrowserTexture.h | ||
virtual void GetResourceSizeEx
(
FResourceSizeEx& CumulativeResourceSize |
WebBrowserTexture.h | ||
virtual uint32 GetSurfaceArraySize() |
WebBrowserTexture.h | ||
virtual float GetSurfaceDepth() |
WebBrowserTexture.h | ||
virtual float GetSurfaceHeight() |
WebBrowserTexture.h | ||
virtual float GetSurfaceWidth() |
WebBrowserTexture.h | ||
virtual ETextureClass GetTextureClass() |
WebBrowserTexture.h | ||
int32 GetWidth () |
Gets the current width of the texture. | WebBrowserTexture.h | |
void SetExternalTextureGuid
(
FGuid guid |
WebBrowserTexture.h | ||
void TickResource
(
TSharedPtr< FWebBrowserTextureSample, ESPMode::ThreadSafe > Sample |
WebBrowserTexture.h |
Protected
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void UnregisterPlayerGuid() |
Unregister the player's external texture GUID. | WebBrowserTexture.h |