unreal.PyTestObject

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

Bases: unreal.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

  • bool_defaults_only (bool): [Read-Write] Bool Defaults Only

  • bool_instance_only (bool): [Read-Write] Bool Instance Only

  • child_struct (PyTestChildStruct): [Read-Write] Child Struct

  • delegate (PyTestDelegate): [Read-Write] Delegate

  • enum (PyTestEnum): [Read-Write] Enum

  • float (float): [Read-Write] Float

  • int (int32): [Read-Write] Int

  • multicast_delegate (PyTestMulticastDelegate): [Read-Write] Multicast Delegate

  • name (Name): [Read-Write] Name

  • string (str): [Read-Write] String

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

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

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

  • struct (PyTestStruct): [Read-Write] Struct

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

  • text (Text): [Read-Write] Text

CONSTANT_VALUE = 10

Get Constant Value

Type

(int32)

OTHER_CONSTANT_VALUE = 20

Get Other Constant Value

Type

(int32)

property bool

[Read-Write] Bool

Type

(bool)

call_func_blueprint_implementable(value)int32

Call Func Blueprint Implementable

Parameters

value (int32) –

Returns

Return type

int32

call_func_blueprint_native(value)int32

Call Func Blueprint Native

Parameters

value (int32) –

Returns

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

[Read-Write] Child Struct

Type

(PyTestChildStruct)

property delegate

[Read-Write] Delegate

Type

(PyTestDelegate)

delegate_property_callback(value)int32

Delegate Property Callback

Parameters

value (int32) –

Returns

Return type

int32

classmethod emit_script_error()None

Emit Script Error

classmethod emit_script_warning()None

Emit Script Warning

property enum

[Read-Write] Enum

Type

(PyTestEnum)

property float

[Read-Write] Float

Type

(float)

func_blueprint_implementable(value)int32

Func Blueprint Implementable

Parameters

value (int32) –

Returns

Return type

int32

func_blueprint_native(value)int32

Func Blueprint Native

Parameters

value (int32) –

Returns

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_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
Returns

Return type

int32

func_taking_py_test_struct(struct)None

Func Taking Py Test Struct

Parameters

struct (PyTestStruct) –

property int

[Read-Write] Int

Type

(int32)

is_bool_set()bool

Is Bool Set

Returns

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

[Read-Write] Multicast Delegate

Type

(PyTestMulticastDelegate)

multicast_delegate_property_callback(str)None

Multicast Delegate Property Callback

Parameters

str (str) –

property name

[Read-Write] Name

Type

(Name)

classmethod return_array()

Return Array

Returns

Return type

Array(int32)

classmethod return_map()

Return Map

Returns

Return type

Map(int32, bool)

classmethod return_set()

Return Set

Returns

Return type

Set(int32)

property string

[Read-Write] String

Type

(str)

property string_array

[Read-Write] String Array

Type

(Array(str))

property string_int_map

[Read-Write] String Int Map

Type

(Map(str, int32))

property string_set

[Read-Write] String Set

Type

(Set(str))

property struct

[Read-Write] Struct

Type

(PyTestStruct)

property struct_array

[Read-Write] Struct Array

Type

(Array(PyTestStruct))

property text

[Read-Write] Text

Type

(Text)