UCohtmlHUD

Inherits from UCohtmlBaseComponent, UActorComponent

Public Functions

Name
virtual COHTMLPLUGIN_API voidInitializeComponent() override
COHTMLPLUGIN_API voidDrawHUD(class UCanvas * Canvas, int32 ScreenPosX =0, int32 ScreenPosY =0)
COHTMLPLUGIN_API voidCreateHUDView(const cohtml::ViewSettings & info, const FString & url)
virtual voidTickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) override
voidInitalizeHUDCompositor()
virtual COHTMLPLUGIN_API voidResize(int32 width, int32 height) override
virtual int32GetUserIndex() override

Public Attributes

Name
FSoftObjectPathHUDMaterialName
UMaterial *HUDMaterial
UMaterialInstanceDynamic *HUDMaterialInstance

Additional inherited members

Public Types inherited from UCohtmlBaseComponent

Name
typedef TArray< TWeakObjectPtr< UCohtmlBaseComponent > >WeakCohtmlComponentsArray

Public Functions inherited from UCohtmlBaseComponent

Name
voidSetSoundAttenuation(const FSoundAttenuationSettings & Settings)
voidRegisterForEvent(UPARAM(DisplayName=“JavaScript Event Name”) FString JSEventName, UPARAM(DisplayName=“Event”) FCohtmlJSEventBPCallback Delegate)
virtual voidResizeRenderTarget(int32 width, int32 height)
boolIsReadyToCreateView() const
boolIsReadyForBindings() const
boolHasRequestedView() const
voidShowPaintRects(bool show)
voidLoad(const FString & path)
voidReload()
voidDebugSaveNextFrame()
voidBeginDebugFrameSave()
voidEndDebugFrameSave()
voidEnableDelayedUpdate(bool bEnabled)
voidEnableRendering(bool bEnabled)
UCohtmlJSEvent *CreateJSEvent()
voidTriggerJSEvent(const FString & name, UCohtmlJSEvent * eventData) const
voidCreateDataModelFromObject(const FString & Name, UObject * Model)
voidRemoveDataModelFromObject(UObject * Model)
voidCreateDataModelFromStruct(const FString & Name, const TFieldPath< FStructProperty > Struct)
voidUpdateWholeDataModelFromStruct(const TFieldPath< FStructProperty > Struct) const
voidRemoveDataModelFromStruct(const TFieldPath< FStructProperty > Struct) const
voidUpdateWholeDataModelFromObject(UObject * Model) const
voidSynchronizeModels() const
voidPreloadTextureSync(const FString & AssetPath)
voidPreloadTextureAsync(const FString & AssetPath)
voidAddPreloadedTexture(UTexture2D * Texture)
boolRemovePreloadedTextureFromPath(const FString & AssetPath)
boolRemovePreloadedTexture(UTexture2D * Texture)
voidRemoveAllPreloadedTextures()
virtual boolEnsureMeshData(ECohtmlComponentMeshInit MeshInitialization =ECohtmlComponentMeshInit::LazyInit)
voidSetCohtmlTickGroup(ECohtmlTickGroup InTickGroup)
virtual~UCohtmlBaseComponent()
virtual voidBeginDestroy() override
virtual boolIsReadyForFinishDestroy() override
virtual voidFinishDestroy() override
virtual boolGetMeshes(TArray< TWeakObjectPtr< UStaticMeshComponent » & WeakMeshes) const
cohtml::View *GetView() const
cohtml::ViewRenderer *GetViewRenderer() const
FCohtmlGesturePolicy *GetGesturePolicy()
FCohtmlViewWrapper *GetViewWrapper() const
const FCohtmlCaretRect &GetCaretRect() const
voidSetCaretRect(int x, int y, unsigned width, unsigned height)
voidSetInputFocusToUI()
voidRestoreInputFocusFromUI(bool bForceFocusToGame =false)
cohtml::ECohtmlPageLoadStateGetCurrentPageState() const
voidSetUEViewSettings(const FCohtmlUEViewSettings & InViewSettings)
DECLARE_FUNCTION(execCreateDataModelFromStruct )
DECLARE_FUNCTION(execUpdateWholeDataModelFromStruct )
DECLARE_FUNCTION(execRemoveDataModelFromStruct )
WeakCohtmlComponentsArray::TIteratorGetUCohtmlBaseComponentIterator(UWorld * world)

Protected Functions inherited from UCohtmlBaseComponent

Name
voidCreateView(const cohtml::ViewSettings & info, const FString & url)
virtual voidSendRenderDynamicData_Concurrent() override
virtual boolRequiresGameThreadEndOfFrameUpdates() const override

Public Attributes inherited from UCohtmlBaseComponent

Name
FCohtmlReadyForBindingsReadyForBindings
FCohtmlBindingsReleasedBindingsReleased
FCohtmlScriptingReadyScriptingReady
FCohtmlScriptContextCreatedScriptContextCreated
FCohtmlDOMBuiltDOMBuilt
FCohtmlFinishLoadFinishLoad
FCohtmlLoadFailedLoadFailed
FCohtmlOnNavigateToOnNavigateTo
TArray< UTexture2D * >PreloadedTextures
boolbEnableComplexCSSSupport
UTextureRenderTarget2D *Texture
TEnumAsByte< enum TextureFilter >Filter
boolbReceiveInput
boolbDelayedUpdate
boolbExecuteCommandProcessingWithLayout
boolbUseSurfacePartitioning
boolbRunAdvanceConcurrently
TEnumAsByte< ECohtmlTickGroup >TickGroup
TArray< FCohtmlMeshData >MeshData
TArray< CohtmlDelegateFunctorWrapper >JSEventCallbackWrappers
EMouseCursor::TypeCurrentMouseCursor

Protected Attributes inherited from UCohtmlBaseComponent

Name
FCohtmlUEViewSettingsUEViewSettings
UMultithreadAwareCompositorWrapper *CohCompositorWrapper

Friends inherited from UCohtmlBaseComponent

Name
classTCohtmlViewListener< UCohtmlBaseComponent >

Public Functions Documentation

function InitializeComponent

virtual COHTMLPLUGIN_API void InitializeComponent() override

Reimplements: UCohtmlBaseComponent::InitializeComponent

function DrawHUD

COHTMLPLUGIN_API void DrawHUD(
    class UCanvas * Canvas,
    int32 ScreenPosX =0,
    int32 ScreenPosY =0
)

function CreateHUDView

COHTMLPLUGIN_API void CreateHUDView(
    const cohtml::ViewSettings & info,
    const FString & url
)

function TickComponent

virtual void TickComponent(
    float DeltaTime,
    enum ELevelTick TickType,
    FActorComponentTickFunction * ThisTickFunction
) override

Reimplements: UCohtmlBaseComponent::TickComponent

function InitalizeHUDCompositor

void InitalizeHUDCompositor()

function Resize

virtual COHTMLPLUGIN_API void Resize(
    int32 width,
    int32 height
) override

Reimplements: UCohtmlBaseComponent::Resize

Resizes the View

function GetUserIndex

virtual int32 GetUserIndex() override

Reimplements: UCohtmlBaseComponent::GetUserIndex

Public Attributes Documentation

variable HUDMaterialName

FSoftObjectPath HUDMaterialName;

variable HUDMaterial

UMaterial * HUDMaterial;

variable HUDMaterialInstance

UMaterialInstanceDynamic * HUDMaterialInstance;