unreal.DataTableFunctionLibrary

class unreal.DataTableFunctionLibrary(outer=None, name='None')

Bases: unreal.BlueprintFunctionLibrary

Data Table Function Library

C++ Source:

  • Module: Engine
  • File: DataTableFunctionLibrary.h
classmethod does_data_table_row_exist(table, row_name) → bool

Returns whether or not Table contains a row named RowName

Parameters:
Returns:

Return type:

bool

classmethod evaluate_curve_table_row(curve_table, row_name, xy, context_string) -> (out_result=EvaluateCurveTableResult, out_xy=float)

Evaluate Curve Table Row

Parameters:
Returns:

out_result (EvaluateCurveTableResult):

out_xy (float):

Return type:

tuple

classmethod fill_data_table_from_csv_file(data_table, csv_file_path) → bool

Empty and fill a Data Table from CSV file.

Parameters:
  • data_table (DataTable) –
  • csv_file_path (str) – The file path of the CSV file.
Returns:

True if the operation succeeds, check the log for errors if it didn’t succeed.

Return type:

bool

classmethod fill_data_table_from_csv_string(data_table, csv_string) → bool

Empty and fill a Data Table from CSV string.

Parameters:
  • data_table (DataTable) –
  • csv_string (str) – The Data that representing the contents of a CSV file.
Returns:

True if the operation succeeds, check the log for errors if it didn’t succeed.

Return type:

bool

classmethod fill_data_table_from_json_file(data_table, json_file_path) → bool

Empty and fill a Data Table from JSON file.

Parameters:
  • data_table (DataTable) –
  • json_file_path (str) – The file path of the JSON file.
Returns:

True if the operation succeeds, check the log for errors if it didn’t succeed.

Return type:

bool

classmethod fill_data_table_from_json_string(data_table, json_string) → bool

Empty and fill a Data Table from JSON string.

Parameters:
  • data_table (DataTable) –
  • json_string (str) – The Data that representing the contents of a JSON file.
Returns:

True if the operation succeeds, check the log for errors if it didn’t succeed.

Return type:

bool

classmethod get_data_table_column_as_string(data_table, property_name) -> Array(str)

Export from the DataTable all the row for one column. Export it as string. The row name is not included.

Parameters:
Returns:

Return type:

Array(str)

classmethod get_data_table_row_names(table) -> Array(Name)

Get Data Table Row Names

Parameters:table (DataTable) –
Returns:out_row_names (Array(Name)):
Return type:Array(Name)