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.StructBaseStruct 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] Boolbool_defaults_only(bool): [Read-Write] Bool Defaults Onlybool_instance_only(bool): [Read-Write] Bool Instance Onlyenum(PyTestEnum): [Read-Write] Enumfloat(float): [Read-Write] Floatint(int32): [Read-Write] Intlegacy_int(int32): [Read-Write] Legacy Int deprecated: LegacyInt is deprecated. Please use Int instead.name(Name): [Read-Write] Namestring(str): [Read-Write] Stringstring_array(Array(str)): [Read-Write] String Arraystring_int_map(Map(str, int32)): [Read-Write] String Int Mapstring_set(Set(str)): [Read-Write] String Settext(Text): [Read-Write] Text
- CONSTANT_VALUE = 10¶
Get Constant Value
- Type
(int32)
- __add__(other)¶
Overloads:
strAdd Strint32Add IntfloatAdd Float
- __iadd__(other)¶
Overloads:
strAdd Strint32Add IntfloatAdd Float
- property enum¶
[Read-Write] Enum
- Type
- property int¶
[Read-Write] Int
- Type
(int32)
- is_bool_set_old()¶
deprecated: ‘is_bool_set_old’ was renamed to ‘is_bool_set’.
- property legacy_int¶
[Read-Write] Legacy Int deprecated: LegacyInt is deprecated. Please use Int instead.
- Type
(int32)