Hi, So I’m new to UE4 and C++ ( I hail from c# and Unity)
I have a relatiely firm understanding of programming, but this particular issue is evading all attempts to solve it.
I am simply trying to get a child of a child (otherwise known as a grandchild), but cannot figure out how to achieve this.
The code in its current iteration is as follows:
newWeapon->AttachRootComponentTo(FirstPersonCameraComponent->GetChildComponent(0), weaponSocketName, EAttachLocation::SnapToTarget);
This gets the child, but how do I get the child of this child?
I’m sure there is a simple solution.
Any help would be appreciated.
Thanks!