unreal.PyTestStruct

class unreal.PyTestStruct(bool=False, int=0, float=0.0, enum=PyTestEnum.ONE, string='', name='None', text='', string_array=[], string_set=[], string_int_map={})

Bases: unreal.StructBase

Struct to allow testing of the various UStruct 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
  • enum (PyTestEnum): [Read-Write] Enum
  • float (float): [Read-Write] Float
  • int (int32): [Read-Write] Int
  • legacy_int (int32): [Read-Write] Legacy Int deprecated: LegacyInt is deprecated. Please use Int instead.
  • 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
  • text (Text): [Read-Write] Text
CONSTANT_VALUE = 10

(int32) – Get Constant Value

__add__(other)

Overloads:

  • str Add Str
  • int32 Add Int
  • float Add Float
__iadd__(other)

Overloads:

  • str Add Str
  • int32 Add Int
  • float Add Float
add_float(value) → None

Add Float

Parameters:value (float) –
Returns:
Return type:PyTestStruct
add_int(value) → None

Add Int

Parameters:value (int32) –
Returns:
Return type:PyTestStruct
add_str(value) → None

Add Str

Parameters:value (str) –
Returns:
Return type:PyTestStruct
bool

(bool) – [Read-Write] Bool

enum

(PyTestEnum) – [Read-Write] Enum

float

(float) – [Read-Write] Float

int

(int32) – [Read-Write] Int

is_bool_set() → bool

Is Bool Set

Returns:
Return type:bool
is_bool_set_old()

deprecated: ‘is_bool_set_old’ was renamed to ‘is_bool_set’.

legacy_int

(int32) – [Read-Write] Legacy Int deprecated: LegacyInt is deprecated. Please use Int instead.

legacy_is_bool_set() → bool

Legacy Is Bool Set deprecated: LegacyIsBoolSet is deprecated. Please use IsBoolSet instead.

Returns:
Return type:bool
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

text

(Text) – [Read-Write] Text