Navigation
API > API/Plugins > API/Plugins/Harmonix
Description
Given a pointer to a valid struct member, will recursively iterate over all the properties in the struct and all child structs and arrays and log the values in each
logs each value on a new line
For example: FBaz { int Number = 4; }
FBar
{
TArray
UMyObject { FBar MyBar;
void LogProperty() { MyBar.BazArray.Add(FBaz()); MyBar.BazArray.Add(FBaz());
MyBar.BazArray[0].Number = 3; MyBar.BazArray[1].Number = 10;
Harmonix::LogStructProperties(&MyBar); } }
Log: MyBar { Log: BazArray [ Log: Baz { Log: Number = 3 Log: } ~Baz Log: Baz { Log: Number = 10 Log: } ~Baz Log: ] ~BazArray Log: } ~MyBar
ensures that the FProperty at the head of the PropertyChain is the same type as the struct passed in
| Name | Harmonix::LogStructProperties |
| Type | function |
| Header File | /Engine/Plugins/Runtime/Harmonix/Source/Harmonix/Public/Harmonix/PropertyUtility.h |
| Include Path | #include "Harmonix/PropertyUtility.h" |
namespace Harmonix
{
template<typename TStructType>
void Harmonix::LogStructProperties
(
TStructType * StructPtr
)
}