header file:
{
GENERATED_BODY()
USkeletalMeshComponent* SkeletalComp;
UPROPERTY(EditAnywhere)
FName Start;
UPROPERTY(EditAnywhere)
FName End;
UPROPERTY(EditAnywhere)
FName Rotation;
cpp file:
FVector StartSocketLocation{ SkeletalComp->GetSocketLocation(Start) }; | |
---|---|
FVector EndSocketLocation{ SkeletalComp->GetSocketLocation(End) }; | |
FQuat ShapeRotation{ SkeletalComp->GetSocketQuaternion(Rotation) }; |
When declaring start and end FName, the code didn’t specify where to start, how UE knows which part is the start which part is the end FVector declaration?