unreal_engine
Interact with the unreal engine.
When using the functions prefixed with read from the info is returned directly from memory. It's strongly advised that these functions are never called within the paint callback. Calling these functions within the paint callback, may cause unexpected performance drops. Querying the game's memory is expensive, and doing it every frame is not optimal.
These functions we're primarily built for Unreal Engine 4 & Unreal Engine 5.
Functions:
Read FVector
unreal_engine.read_fvector(integer: address)Reads a vector (FVector) from the specified memory address. Uses double-precision floating-point values (double) for higher accuracy.
Read Index From Actor
unreal_engine.read_index_from_actor(integer: aactor_pointer)Retrieves the name index from an Actor's memory pointer. This index is used to reference the actor's name in the global name array.
Read Name From Index
unreal_engine.read_name_from_index(integer: base_address, integer: g_name_offset, integer: index)Reads a name string from the global names array GNames using the given index and memory offset. Commonly used to resolve actor or object names.
Read TArray
unreal_engine.read_tarray(integer: address)Reads a TArray from the address and returns table of all pointers stored in the array. Useful for iterating over objects like actors, components, bones, etc., that are held in Unreal Engine's dynamic array structure.
Read Minimal View Info
unreal_engine.read_minimal_view_info(integer: pov_address)Reads a FMinimalViewInfo structure from the given memory address and returns a table containing key camera/view properties.
location
Returns the location in the following values: x, y, z.
rotation
Returns the rotation in the following values: pitch, yaw, roll.
fov
Returns your field of view as a float.
World To Screen
unreal_engine.world_to_screen(vector: world_position, table: view_info)Converts 3D world coordinates (either individual x, y, z or a vector) into 2D screen coordinates using the provided view info. Returns the resulting screen position as a vector.
Last updated