unreal.PyTestStruct
¶
- class unreal.PyTestStruct(bool: bool = False, int: int = 0, float: float = 0.0, enum: PyTestEnum = Ellipsis, string: str = '', name: Name = 'None', text: Text = '', field_path: FieldPath = Ellipsis, struct_field_path: FieldPath = Ellipsis, string_array: Array[str] = [], string_set: Set[str] = [], string_int_map: Map[str, int] = {})¶
Bases:
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] Boolbool_defaults_only
(bool): [Read-Write] Bool Defaults Onlybool_instance_only
(bool): [Read-Write] Bool Instance Onlyenum
(PyTestEnum): [Read-Write] Enumfield_path
(FieldPath): [Read-Write] Field Pathfloat
(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 Setstruct_field_path
(FieldPath): [Read-Write] Struct Field Pathtext
(Text): [Read-Write] Text
- __add__(other: PyTestStruct) None ¶
Overloads:
str
Add Strint32
Add Intfloat
Add Float
- __iadd__(other: PyTestStruct) None ¶
Overloads:
str
Add Strint32
Add Intfloat
Add Float
- property enum: PyTestEnum¶
[Read-Write] Enum
- Type:
- property legacy_int: int¶
[Read-Write] Legacy Int deprecated: LegacyInt is deprecated. Please use Int instead.
- Type:
(int32)