How to replicate the variable declared in under the struct?

Not the struct directly, but a class member variable of the struct type.

Example:

USTRUCT(BlueprintType)
struct FST_ItemFashion : public FTableRowBase
{
     UPROPERTY(EditDefaultsOnly, BlueprintReadOnly, Category = Fashion Items Related)
    class USkeletalMesh* SkeletalMesh;

}

...(class code)...

protected:

UPROPERTY(Replicated)
FST_ItemFashion ItemFashion;
4 Likes