UCohtmlComponent

Inherits from UCohtmlBaseComponent, UActorComponent

Public Functions

Name
virtual boolGetMeshes(TArray< TWeakObjectPtr< UStaticMeshComponent » & WeakMeshes) const override
virtual voidInitializeComponent() override
virtual voidTickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) override
virtual voidResize(int32 width, int32 height) override
virtual int32GetUserIndex() override

Public Attributes

Name
FStringURL
int32Width
int32Height
boolManualTexture
FNamePrimitiveName

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
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 GetMeshes

virtual bool GetMeshes(
    TArray< TWeakObjectPtr< UStaticMeshComponent >> & WeakMeshes
) const override

Reimplements: UCohtmlBaseComponent::GetMeshes

function InitializeComponent

virtual void InitializeComponent() override

Reimplements: UCohtmlBaseComponent::InitializeComponent

function TickComponent

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

Reimplements: UCohtmlBaseComponent::TickComponent

function Resize

virtual 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 URL

FString URL;

The URL to load when the View is created

variable Width

int32 Width;

variable Height

int32 Height;

variable ManualTexture

bool ManualTexture;

variable PrimitiveName

FName PrimitiveName;

The name of the primitive to which the view should be rendered. If left empy, the component will attach to the first primitive of the owning actor.