Navigation
API > API/Plugins > API/Plugins/NetcodeUnitTest > API/Plugins/NetcodeUnitTest/FVMReflection > API/Plugins/NetcodeUnitTest/FVMReflection/op_subscript
References
Module | NetcodeUnitTest |
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&91;&93;
&40;
const ANSICHAR &42; InFieldType
&41;
Remarks
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"]. Returns this VM reflector, for operator chaining
Parameters
Name | Description |
---|---|
InFieldType | The expected field type |