Given the following code, is MyObj_1 visible to the Garbage Collector?
Meaning, it will be collected the moment the GC does collection.
And, do GC collections happen while automation testing?
bool FTestProjectTest::RunTest(
FString const & Parameters
)
{
{
auto * MyObj_1 = NewObject<UMyClass>();
UPROPERTY()
auto * MyObj_2 = NewObject<UMyClass>();
// ...
// use UObjects
}
return true;
}