Varibles cannot be edited in Anim Preview Editor

102238-rtx截图未命名.png

but I declared the varaible as BlueprintReadWrite in C++:

    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FVector HeadPosition;
    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FQuat HeadRotation;
    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FVector LeftHandPosition;
    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FQuat LeftHandRotation;
    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FVector RightHandPosition;
    UPROPERTY(Category = IK, VisibleAnywhere, BlueprintReadWrite)
    FQuat RightHandRotation;

Hey -

What is the parent class for the class that these variables are being added to? Also, can you try changing VisibleAnywhere to EditAnywhere and let me know if that has any affect on the editability of the variables in the editor?

102370-rtx截图未命名.png

Thank you very much! The variables are editable now, but why the name of “Rotation” are left only one word?

The “Rotation” name issue seems to come from the fact that you are using an FQuat which is only used for rotation. Using FRotator instead will give the variables the same name in the editor that was provided in code. This has been reported as UE-34554 and can be found here: Unreal Engine Issues and Bug Tracker (UE-34554)