Bootstrap Chameleon Logo

PythonTestLib

Function Name Description
delay_call Push a 'delay call' python command.
cancel_delay_call_by_id Cancel specified delay call
cancel_delay_call Cancel all running delay call
get_logs Get Logs from Log History
clear_log_buffer Clear the Log History buffers. The Log history is different with log in Output Console window. Clear History in Output Log Window will not clear the History Buffer

delay_call

Push a 'delay call' python command.

unreal.PythonTestLib.delay_call(python_cmd, delay_seconds, on_finished_cmd="", repeat_count=1) -> Guid
    Push a 'delay call' python command.
    note: added in v1.0.9

    Args:
        python_cmd (str): Python command in string
        delay_seconds (float): Time seconds for delay call
        on_finished_cmd (str): Python command in string, when delay call finished
        repeat_count (int32): The number of repeated calls

    Returns:
        Guid: Guid

cancel_delay_call_by_id

Cancel specified delay call

unreal.PythonTestLib.cancel_delay_call_by_id(guid) -> bool
    Cancel specified  delay call
    note: added in v1.0.10

    Args:
        guid (Guid):

    Returns:
        bool: None

cancel_delay_call

Cancel all running delay call

unreal.PythonTestLib.cancel_delay_call() -> bool
    Cancel all running delay call
    note: added in v1.0.9

    Returns:
        bool: None

get_logs

Get Logs from Log History

unreal.PythonTestLib.get_logs(number_limit=-1, category_regex="") -> Array[str]
    Get Logs from Log History
    note: added in v1.0.9

    Args:
        number_limit (int32): Logs Maximum Number Limit, -1 for No Limit
        category_regex (str): Regular expression for category filter.

    Returns:
        Array[str]: The Logs with timestamps and frame identifier (FrameCounter % 1000)

clear_log_buffer

Clear the Log History buffers. The Log history is different with log in Output Console window. Clear History in Output Log Window will not clear the History Buffer

unreal.PythonTestLib.clear_log_buffer() -> int32
    Clear the Log History buffers. The Log history is different with log in Output Console window. Clear History in Output Log Window will not clear the History Buffer
    note: added in v1.0.9

    Returns:
        int32: The number of Cleared logs

Other Editor Python Libs: