This issue has be solved by re-create related blueprints.
Hey guys, I’ve met a issue that I can’t solve it out. That thing is, I created a custom class inherited from ACharacter, and inserted the following code in order to add a simple static mesh component to it:
UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = Mesh, meta = (AllowPrivateAccess = "true")) class UStaticMeshComponent* SMWeapon;
SMWeapon = CreateDefaultSubobject<UStaticMeshComponent>(TEXT("SMWeapon"));
Then i created two blueprint class which derived from the custom c++ character class, and yes i do find the derved static mesh component but there’s nothing in detail panel
the same component added with blueprint type doesn’t have this issue
- changing VisibleAnyWhere to EditAnyWhere
2.changing BlueprintReadOnly to BlueprintReadWrite
3.adding a bunch of other property for it
4.tring to attach it to the skeleton mesh component which is inherited from ACharacter
5.Deleting all folders like .vs \ Binary\ Saved\Interrmediate and .sln file ,then regenerate them
but none of them works…
Any solution would be appreciated!