unreal.PyTestObject

class unreal.PyTestObject(outer: Object | None = None, name: Name | str = 'None')

Bases: Object

Object to allow testing of the various UObject features that are exposed to Python wrapped types.

C++ Source:

  • Plugin: PythonScriptPlugin

  • Module: PythonScriptPlugin

  • File: PyTest.h

Editor Properties: (see get_editor_property/set_editor_property)

  • bool (bool): [Read-Write]

  • bool_defaults_only (bool): [Read-Write]

  • bool_instance_only (bool): [Read-Write]

  • child_struct (PyTestChildStruct): [Read-Write]

  • delegate (PyTestDelegate): [Read-Write]

  • enum (PyTestEnum): [Read-Write]

  • field_path (FieldPath): [Read-Write]

  • float (float): [Read-Write]

  • int (int32): [Read-Write]

  • multicast_delegate (PyTestMulticastDelegate): [Read-Write]

  • name (Name): [Read-Write]

  • string (str): [Read-Write]

  • string_array (Array[str]): [Read-Write]

  • string_int_map (Map[str, int32]): [Read-Write]

  • string_set (Set[str]): [Read-Write]

  • struct (PyTestStruct): [Read-Write]

  • struct_array (Array[PyTestStruct]): [Read-Write]

  • struct_field_path (FieldPath): [Read-Write]

  • text (Text): [Read-Write]

CONSTANT_VALUE: int

Get Constant Value

Type:

(int32)

OTHER_CONSTANT_VALUE: int

Get Other Constant Value

Type:

(int32)

property bool: bool

[Read-Write]

Type:

(bool)

call_func_blueprint_implementable(value) int32

Call Func Blueprint Implementable

Parameters:

value (int32) –

Return type:

int32

call_func_blueprint_native(value) int32

Call Func Blueprint Native

Parameters:

value (int32) –

Return type:

int32

call_func_blueprint_native_ref(out_struct) PyTestStruct

Call Func Blueprint Native Ref

Parameters:

out_struct (PyTestStruct) –

Returns:

out_struct (PyTestStruct):

Return type:

PyTestStruct

property child_struct: PyTestChildStruct

[Read-Write]

Type:

(PyTestChildStruct)

property delegate: PyTestDelegate

[Read-Write]

Type:

(PyTestDelegate)

delegate_property_callback(value) int32

UHT couldn’t parse any default value for the FieldPath.

Parameters:

value (int32) –

Return type:

int32

classmethod emit_script_error() None

Emit Script Error

classmethod emit_script_warning() None

Emit Script Warning

property enum: PyTestEnum

[Read-Write]

Type:

(PyTestEnum)

property field_path: FieldPath

[Read-Write]

Type:

(FieldPath)

property float: float

[Read-Write]

Type:

(float)

func_blueprint_implementable(value) int32

Func Blueprint Implementable

Parameters:

value (int32) –

Return type:

int32

func_blueprint_native(value) int32

Func Blueprint Native

Parameters:

value (int32) –

Return type:

int32

func_blueprint_native_ref(out_struct) PyTestStruct

Func Blueprint Native Ref

Parameters:

out_struct (PyTestStruct) –

Returns:

out_struct (PyTestStruct):

Return type:

PyTestStruct

func_interface(value) int32

Func Interface

Parameters:

value (int32) –

Return type:

int32

func_interface_child(value) int32

Func Interface Child

Parameters:

value (int32) –

Return type:

int32

func_interface_other(value) int32

Func Interface Other

Parameters:

value (int32) –

Return type:

int32

func_taking_field_path(field_path) None

Func Taking Field Path

Parameters:

field_path (FieldPath) –

func_taking_py_test_child_struct(struct) None

Func Taking Py Test Child Struct

Parameters:

struct (PyTestChildStruct) –

func_taking_py_test_delegate(delegate, value) int32

Func Taking Py Test Delegate

Parameters:
Return type:

int32

func_taking_py_test_struct(struct) None

Func Taking Py Test Struct

Parameters:

struct (PyTestStruct) –

func_taking_py_test_struct_default(struct=[False, 0, 0.000000, PyTestEnum.ONE, '', 'None', '', FieldPath(), FieldPath(), [], [], {}, False]) None

Func Taking Py Test Struct Default

Parameters:

struct (PyTestStruct) –

property int: int

[Read-Write]

Type:

(int32)

is_bool_set() bool

Is Bool Set

Return type:

bool

legacy_func_taking_py_test_struct(struct) None

Legacy Func Taking Py Test Struct deprecated: LegacyFuncTakingPyTestStruct is deprecated. Please use FuncTakingPyTestStruct instead.

Parameters:

struct (PyTestStruct) –

property multicast_delegate: PyTestMulticastDelegate

[Read-Write]

Type:

(PyTestMulticastDelegate)

multicast_delegate_property_callback(str) None

Multicast Delegate Property Callback

Parameters:

str (str) –

property name: Name

[Read-Write]

Type:

(Name)

classmethod return_array() Array[int32]

Return Array

Return type:

Array[int32]

classmethod return_field_path() FieldPath

Return Field Path

Return type:

FieldPath

classmethod return_map() Map[int32, bool]

Return Map

Return type:

Map[int32, bool]

classmethod return_set() Set[int32]

Return Set

Return type:

Set[int32]

property string: str

[Read-Write]

Type:

(str)

property string_array: None

[Read-Write]

Type:

(Array[str])

property string_int_map: None

[Read-Write]

Type:

(Map[str, int32])

property string_set: None

[Read-Write]

Type:

(Set[str])

property struct: PyTestStruct

[Read-Write]

Type:

(PyTestStruct)

property struct_array: None

[Read-Write]

Type:

(Array[PyTestStruct])

property struct_field_path: FieldPath

[Read-Write]

Type:

(FieldPath)

property text: Text

[Read-Write]

Type:

(Text)