UCohtmlJSEvent
#include <CohtmlJSEvent.h>
Inherits from UObject
Public Classes
Section titled “Public Classes”| Name | |
|---|---|
| struct | FBoundArrayData |
| struct | FBoundStructArg |
| struct | FVariablePair |
Public Types
Section titled “Public Types”| Name | |
|---|---|
| enum | EVariableType { VT_Int32, VT_Float, VT_Bool, VT_String, VT_Struct, VT_Object, VT_Array, VT_Count} |
Public Functions
Section titled “Public Functions”| Name | |
|---|---|
| void | AddByte(uint8 byte) |
| void | AddInt32(int32 integer) |
| void | AddString(const FString & str) |
| void | AddName(const FName & name) |
| void | AddText(const FText & text) |
| void | AddFloat(float fl) |
| void | AddBool(bool b) |
| void | AddStructArg(const TFieldPath< FStructProperty > Arg) |
| void | AddObject(UObject * object) |
| void | AddArray(const TArray< int32 > & Array) |
| void | AddArrayInternal(void * Array, EVariableType ArrayType) |
| void | AddArrayOfStructsInternal(void * Array, UStruct * StructType) |
| void | AddStructInternal(const COH_PROP(StructProperty) * PropertyType, void * ArgAddress) |
| DECLARE_FUNCTION(execAddArray ) | |
| DECLARE_FUNCTION(execAddStructArg ) | |
| virtual void | BeginDestroy() |
| ~UCohtmlJSEvent() |
Public Attributes
Section titled “Public Attributes”| Name | |
|---|---|
| TArray< int32 > | Ints |
| TArray< FString > | Strings |
| TArray< float > | Floats |
| TArray< bool > | Bools |
| TArray< TWeakObjectPtr< UObject > > | Objects |
| TArray< FBoundStructArg > | StructArgs |
| TArray< FBoundArrayData > | Arrays |
| TArray< FVariablePair > | OrderedVariables |
| TArray< TObjectPtr< const UStruct > > | StructTypes |
Detailed Description
Section titled “Detailed Description”class UCohtmlJSEvent;The class represents an event triggered by the game that will be processed in the JavaScript of the View. Use this class to pass parameters to JavaScript.
Public Types Documentation
Section titled “Public Types Documentation”enum EVariableType
Section titled “enum EVariableType”| Enumerator | Value | Description |
|---|---|---|
| VT_Int32 | ||
| VT_Float | ||
| VT_Bool | ||
| VT_String | ||
| VT_Struct | ||
| VT_Object | ||
| VT_Array | ||
| VT_Count |
Public Functions Documentation
Section titled “Public Functions Documentation”function AddByte
Section titled “function AddByte”void AddByte( uint8 byte)Adds a Byte parameter to the event
function AddInt32
Section titled “function AddInt32”void AddInt32( int32 integer)Adds an Integer parameter to the event
function AddString
Section titled “function AddString”void AddString( const FString & str)Adds a String parameter to the event
function AddName
Section titled “function AddName”void AddName( const FName & name)Adds a Name parameter to the event
function AddText
Section titled “function AddText”void AddText( const FText & text)Adds a Text parameter to the event
function AddFloat
Section titled “function AddFloat”void AddFloat( float fl)Adds a Float parameter to the event
function AddBool
Section titled “function AddBool”void AddBool( bool b)Adds a Boolean parameter to the event
function AddStructArg
Section titled “function AddStructArg”void AddStructArg( const TFieldPath< FStructProperty > Arg)Adds an instance of UStruct to the event
function AddObject
Section titled “function AddObject”void AddObject( UObject * object)Adds an Object parameter to the event
function AddArray
Section titled “function AddArray”void AddArray( const TArray< int32 > & Array)Adds an Array of a bindable type parameter to the event
function AddArrayInternal
Section titled “function AddArrayInternal”void AddArrayInternal( void * Array, EVariableType ArrayType)Adds an TArray parameter to the event. Clients should never call directly this.
function AddArrayOfStructsInternal
Section titled “function AddArrayOfStructsInternal”void AddArrayOfStructsInternal( void * Array, UStruct * StructType)function AddStructInternal
Section titled “function AddStructInternal”void AddStructInternal( const COH_PROP(StructProperty) * PropertyType, void * ArgAddress)function DECLARE_FUNCTION
Section titled “function DECLARE_FUNCTION”DECLARE_FUNCTION( execAddArray)function DECLARE_FUNCTION
Section titled “function DECLARE_FUNCTION”DECLARE_FUNCTION( execAddStructArg)function BeginDestroy
Section titled “function BeginDestroy”virtual void BeginDestroy()function ~UCohtmlJSEvent
Section titled “function ~UCohtmlJSEvent”~UCohtmlJSEvent()Public Attributes Documentation
Section titled “Public Attributes Documentation”variable Ints
Section titled “variable Ints”TArray< int32 > Ints;variable Strings
Section titled “variable Strings”TArray< FString > Strings;variable Floats
Section titled “variable Floats”TArray< float > Floats;variable Bools
Section titled “variable Bools”TArray< bool > Bools;variable Objects
Section titled “variable Objects”TArray< TWeakObjectPtr< UObject > > Objects;variable StructArgs
Section titled “variable StructArgs”TArray< FBoundStructArg > StructArgs;variable Arrays
Section titled “variable Arrays”TArray< FBoundArrayData > Arrays;variable OrderedVariables
Section titled “variable OrderedVariables”TArray< FVariablePair > OrderedVariables;variable StructTypes
Section titled “variable StructTypes”TArray< TObjectPtr< const UStruct > > StructTypes;© 2026 Coherent Labs. All rights reserved.