I created an actor component which has a UBoxComponent in it
class TEST_API UMeleeAttackComponent : public UActorComponent
{
GENERATED_BODY()
UMeleeAttackComponent();
UPROPERTY(VisibleAnywhere, BlueprintReadWrite, Category = "Hitbox")
UBoxComponent* Hitbox;
};
and when I add it to an actor
class TEST_API AMeleeEnemy : public APawn
{
GENERATED_BODY()
public:
AMeleeEnemy();
UPROPERTY(Category = "Attack", VisibleAnywhere, BlueprintReadOnly)
class UMeleeAttackComponent* MeleeAttack;
};
I can not edit the properties of the Hitbox in blueprint, only the MeleeAttack ones, is it a bug? How can I edit the hitbox properties?
Even If I set MeleeAttack to EditAnywhere and edit the properties of Hitbox there, it does not work.