UCohtmlHUD
Inherits from UCohtmlBaseComponent, UActorComponent
Public Functions
| Name | |
|---|---|
| virtual COHTMLPLUGIN_API void | InitializeComponent() override |
| COHTMLPLUGIN_API void | DrawHUD(class UCanvas * Canvas, int32 ScreenPosX =0, int32 ScreenPosY =0) |
| COHTMLPLUGIN_API void | CreateHUDView(const cohtml::ViewSettings & info, const FString & url) |
| virtual void | TickComponent(float DeltaTime, enum ELevelTick TickType, FActorComponentTickFunction * ThisTickFunction) override |
| void | InitalizeHUDCompositor() |
| virtual COHTMLPLUGIN_API void | Resize(int32 width, int32 height) override |
| virtual int32 | GetUserIndex() override |
Public Attributes
| Name | |
|---|---|
| FSoftObjectPath | HUDMaterialName |
| TObjectPtr< UMaterial > | HUDMaterial |
| TObjectPtr< UMaterialInstanceDynamic > | HUDMaterialInstance |
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) |
| void | RegisterForEvent(UPARAM(DisplayName=“JavaScript Event Name”) FString JSEventName, UPARAM(DisplayName=“Event”) FCohtmlJSEventBPCallback Delegate) |
| virtual void | ResizeRenderTarget(int32 width, int32 height) |
| bool | IsReadyToCreateView() const |
| bool | IsReadyForBindings() const |
| bool | HasRequestedView() const |
| void | ShowPaintRects(bool show) |
| 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 | 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 |
| virtual bool | GetMeshes(TArray< TWeakObjectPtr< UStaticMeshComponent » & WeakMeshes) const |
| 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) |
| void | SetInputFocusToUI() |
| void | RestoreInputFocusFromUI(bool bForceFocusToGame =false) |
| cohtml::ECohtmlPageLoadState | GetCurrentPageState() const |
| void | SetUEViewSettings(const FCohtmlUEViewSettings & InViewSettings) |
| 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 |
| FCohtmlBindingsReleased | BindingsReleased |
| FCohtmlScriptingReady | ScriptingReady |
| 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
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
TObjectPtr< UMaterial > HUDMaterial;
variable HUDMaterialInstance
TObjectPtr< UMaterialInstanceDynamic > HUDMaterialInstance;