I’m stumped and hopefully a kind soul can tell me what I am missing.
I am seeing an Error: Unhandled Exception: EXCEPTION_ACCESS_VIOLATION reading address 0xffffffffffffffff on this line of code:
for (int Index = 0; Index < Elements.Num(); Index++)
FName BoneName = Elements[Index].LastHit.BoneName;
// this next line crashes
FTransform SupportCompCurrentTransform = Elements[Index].SupportComp->GetSocketTransform(BoneName);
Elements is an array of USTRUCT. This USTRUCT is initialized with:
Any property that is not marked with UPROPERTY() can be garbage collected at any time. When you add UPROPERTY() to your property, it is associated with the object (that holds the property), and if that object is still alive, the property survives the GC