How to Get the TArray-Property Data From Reflect_Data

AReflactMainActor* RefObjIns = NewObject(this, AReflactMainActor::StaticClass());

for(TFieldIterator<UProperty>ProIter(RefObjIns->GetClass()); ProIter; ++ProIter)
{
	
	UProperty* Property = *ProIter;

	
	if(Property->GetNameCPP().Equals(TEXT("SortArray")))
	{

		
		UArrayProperty* ArrayProperty = Cast<UArrayProperty>(Property);
		
		
		if(ArrayProperty)
		{
			void* ValPtr = Property->ContainerPtrToValuePtr<uint8>(RefObjIns);

                            **// how to write the code ,How to Get the TArray-Property Data From Reflect_Data**

		}

			

	}


}
1 Like