How does UE know where to start or end

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?

You would have likely given those variables values in the editor.

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms