<aside> 🗒️ Part of Ari's Unreal Engine Notes.

</aside>

You can use reflection at any time, both in editor and in shipping builds.

An example:

// Use reflection to null all UPROPERTIES as if this object was newly instantiated.
for (TFieldIterator<FProperty> It(GetClass()); It; ++It)
{
	FProperty* Property = *It;
	void* PropertyDataVoidPtr = Property->ContainerPtrToValuePtr<void>(this);
	Property->ClearValue(PropertyDataVoidPtr);
}