Module |
|
Header |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Public/NUTUtilReflection.h |
Include |
#include "NUTUtilReflection.h" |
Source |
/Engine/Plugins/NetcodeUnitTest/NetcodeUnitTest/Source/NetcodeUnitTest/Private/NUTUtilReflection.cpp |
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"]. This is mandatory, and must be specified before the array element subscript, like so: ByteArray["uint8"][0].
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"].
Returns this VM reflector, for operator chaining
Parameter |
Description |
---|---|
InFieldType |
The expected field type |