Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest > API/Plugins/NetcodeUnitTest/FVMReflection
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FVMReflection & operator[]
(
int32 ArrayElement |
Array subscript operator, used to access static/dynamic array elements | NUTUtilReflection.h | |
FVMReflection & operator[]
(
const ANSICHAR* InFieldType |
Array subscript operator, which takes a string for verifying that an array is of a particular type, e.g. ["uint8"]. | NUTUtilReflection.h |
operatorint32
Description
Array subscript operator, used to access static/dynamic array elements
NOTE: Due to operator precedence, you MUST wrap the accessed property in brackets, like so (FVMReflectior(blah)->"ArrayProp")["Type"][Element]->"etc"
| Name | operator[] |
| Type | function |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h |
| Include Path | #include "NUTUtilReflection.h" |
| Source | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/NUTUtilReflection.cpp |
FVMReflection & operator[]
(
int32 ArrayElement
)
Returns this VM reflector, for operator chaining
Parameters
| Name | Remarks |
|---|---|
| ArrayElement | The array element to access |
operatorconst ANSICHAR *
Description
Array subscript operator, which takes a string for verifying that an array is of a particular type, e.g. ["uint8"]. This is mandatory, and must be specified before the array element subscript, like so: ByteArray["uint8"][0].
NOTE: This also works for structs, but should only be used when using (void*) to cast a struct to a pointer.
The primary purpose of this, is for casting arrays to an (FScriptArray*), and then to (TArray
Object arrays should be specified in the format ["U?*"], e.g. ["UObject*"], Actor arrays should be specified in the format ["A?*"], e.g. ["APawn*"], and Struct and struct arrays should be specified in the format ["F?"], e.g. ["FVector"].
| Name | operator[] |
| Type | function |
| Header File | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h |
| Include Path | #include "NUTUtilReflection.h" |
| Source | /Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/NUTUtilReflection.cpp |
FVMReflection & operator[]
(
const ANSICHAR * InFieldType
)
Returns this VM reflector, for operator chaining
Parameters
| Name | Remarks |
|---|---|
| InFieldType | The expected field type |