Hello. I have an actor class called ship. I added a UStaticMesh component from code to it. Then created a blueprint. But with the UStaticMesh added from code the actor doesn’t respond to SetActorLocation()
But, if I remove the UStaticMesh component from code and add it directly on the blueprint it works like it should.
Is this a bug?
Code:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Static Mesh")
UStaticMeshComponent *Mesh;
...
Mesh = PCIP.CreateDefaultSubobject<UStaticMeshComponent>(this, TEXT("ShipMesh"));
Mesh->AttachParent = RootComponent;
Mesh component added from code:
Mesh component added directly on blueprint(removed the UStaticMesh from code):

