UCohtmlComponent
Inherits from UCohtmlBaseComponent, UActorComponent
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| virtual bool | GetMeshes(TArray< TWeakObjectPtr< UStaticMeshComponent >> & WeakMeshes) const override |
| virtual void | InitializeComponent() override |
| virtual void | TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) override |
| virtual void | Resize(int32 Width, int32 Height) override |
| virtual uint32 | GetUserIndex() override |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| FString | URL |
| int32 | Width |
| int32 | Height |
| bool | ManualTexture |
| FName | PrimitiveName |
Additional inherited members
Section titled “Additional inherited members”Public Types inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| typedef TArray< TWeakObjectPtr< UObject > > | WeakCohUIHoldersArray |
Public Functions inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| void | SetSoundAttenuation(const FSoundAttenuationSettings & Settings) |
| virtual void | ResizeRenderTarget(int32 Width, int32 Height) |
| bool | IsReadyToCreateView() const |
| bool | IsReadyForBindings() const |
| bool | HasRequestedView() const |
| void | ShowPaintRects(bool bShow) |
| void | Load(const FString & Path) |
| void | Reload() |
| void | DebugSaveNextFrame() |
| void | BeginDebugFrameSave() |
| void | EndDebugFrameSave() |
| void | EnableDelayedUpdate(bool bEnabled) |
| void | EnableRendering(bool bEnabled) |
| UCohtmlJSEvent * | CreateJSEvent() |
| void | TriggerJSEvent(const FString & name, UCohtmlJSEvent * eventData) const |
| void | RegisterForEvent(UPARAM(DisplayName=“UI Event Name”) FString UIEventName, UPARAM(DisplayName=“Event”) FCohtmlJSEventBPCallback Delegate) |
| void | RegisterForCustomEvent(UPARAM(DisplayName=“UI Event Name”) const FString & UIEventName, UPARAM(DisplayName=“Custom Event node Owner”) UObject * CustomEventOwner, UPARAM(DisplayName=“Custom Event node Name”) const FString & CustomEventNodeName) |
| void | CreateDataModelFromObject(const FString & Name, UObject * Model) |
| void | RemoveDataModelFromObject(UObject * Model) |
| void | CreateDataModelFromStruct(const FString & Name, const TFieldPath< FStructProperty > Struct) |
| void | UpdateWholeDataModelFromStruct(const TFieldPath< FStructProperty > Struct) const |
| void | RemoveDataModelFromStruct(const TFieldPath< FStructProperty > Struct) const |
| void | UpdateWholeDataModelFromObject(UObject * Model) const |
| void | SynchronizeModels() const |
| void | PreloadTextureSync(const FString & AssetPath) |
| void | PreloadTextureAsync(const FString & AssetPath) |
| void | AddPreloadedTexture(UTexture2D * Texture) |
| bool | RemovePreloadedTextureFromPath(const FString & AssetPath) |
| bool | RemovePreloadedTexture(UTexture2D * Texture) |
| void | RemoveAllPreloadedTextures() |
| virtual bool | EnsureMeshData(ECohtmlComponentMeshInit MeshInitialization =ECohtmlComponentMeshInit::LazyInit) |
| void | SetCohtmlTickGroup(ECohtmlTickGroup InTickGroup) |
| virtual | ~UCohtmlBaseComponent() |
| virtual void | UninitializeComponent() override |
| virtual void | BeginDestroy() override |
| virtual bool | IsReadyForFinishDestroy() override |
| virtual void | FinishDestroy() override |
| cohtml::View * | GetView() const |
| cohtml::ViewRenderer * | GetViewRenderer() const |
| FCohtmlGesturePolicy * | GetGesturePolicy() |
| FCohtmlViewWrapper * | GetViewWrapper() const |
| const FCohtmlCaretRect & | GetCaretRect() const |
| void | SetCaretRect(int x, int y, unsigned width, unsigned height) |
| virtual uint32 | GetOwningPlayerID() |
| void | SetInputFocusToUI() |
| void | RestoreInputFocusFromUI(bool bForceFocusToGame =false) |
| cohtml::ECohtmlPageLoadState | GetCurrentPageState() const |
| void | SetUEViewSettings(const FCohtmlUEViewSettings & InViewSettings) |
| cohtml::IInputProxy * | GetFocusedInput() |
| DECLARE_FUNCTION(execCreateDataModelFromStruct ) | |
| DECLARE_FUNCTION(execUpdateWholeDataModelFromStruct ) | |
| DECLARE_FUNCTION(execRemoveDataModelFromStruct ) | |
| WeakCohUIHoldersArray::TIterator | GetCohUIHoldersIterator(UWorld * World) |
Protected Functions inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| void | CreateView(const cohtml::ViewSettings & Info, const FString & URL) |
| virtual void | SendRenderDynamicData_Concurrent() override |
| virtual bool | RequiresGameThreadEndOfFrameUpdates() const override |
Public Attributes inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| FCohtmlReadyForBindings | ReadyForBindings |
| FCohtmlScriptingReady | ScriptingReady |
| FCohtmlBindingsReleased | BindingsReleased |
| FCohtmlScriptContextCreated | ScriptContextCreated |
| FCohtmlDOMBuilt | DOMBuilt |
| FCohtmlFinishLoad | FinishLoad |
| FCohtmlLoadFailed | LoadFailed |
| FCohtmlOnNavigateTo | OnNavigateTo |
| TArray< TObjectPtr< UTexture2D > > | PreloadedTextures |
| bool | bEnableComplexCSSSupport |
| TObjectPtr< UTextureRenderTarget2D > | Texture |
| TEnumAsByte< enum TextureFilter > | Filter |
| bool | bReceiveInput |
| bool | bDelayedUpdate |
| bool | bExecuteCommandProcessingWithLayout |
| bool | bUseSurfacePartitioning |
| bool | bRunAdvanceConcurrently |
| TEnumAsByte< ECohtmlTickGroup > | TickGroup |
| TArray< FCohtmlMeshData > | MeshData |
| TArray< CohtmlDelegateFunctorWrapper > | JSEventCallbackWrappers |
| EMouseCursor::Type | CurrentMouseCursor |
Protected Attributes inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| FCohtmlUEViewSettings | UEViewSettings |
Friends inherited from UCohtmlBaseComponent
| Name | |
|---|---|
| class | TCohtmlViewListener< UCohtmlBaseComponent > |
Public Functions Documentation
Section titled “Public Functions Documentation”function GetMeshes
Section titled “function GetMeshes”virtual bool GetMeshes( TArray< TWeakObjectPtr< UStaticMeshComponent >> & WeakMeshes) const overrideReimplements: UCohtmlBaseComponent::GetMeshes
function InitializeComponent
Section titled “function InitializeComponent”virtual void InitializeComponent() overrideReimplements: UCohtmlBaseComponent::InitializeComponent
function TickComponent
Section titled “function TickComponent”virtual void TickComponent( float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) overrideReimplements: UCohtmlBaseComponent::TickComponent
function Resize
Section titled “function Resize”virtual void Resize( int32 Width, int32 Height) overrideReimplements: UCohtmlBaseComponent::Resize
Resizes the View
function GetUserIndex
Section titled “function GetUserIndex”virtual uint32 GetUserIndex() overrideReimplements: UCohtmlBaseComponent::GetUserIndex
Public Attributes Documentation
Section titled “Public Attributes Documentation”variable URL
Section titled “variable URL”FString URL;The URL to load when the View is created
variable Width
Section titled “variable Width”int32 Width;variable Height
Section titled “variable Height”int32 Height;variable ManualTexture
Section titled “variable ManualTexture”bool ManualTexture;variable PrimitiveName
Section titled “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.
© 2026 Coherent Labs. All rights reserved.