Blueprint Property Accessors not working

Blueprint Property Accessors are not working anymore
Here is the code I tried:


private:
UPROPERTY(EditAnywhere, BlueprintSetter=UpdateTexture)
class UTexture2D* MyTexture;

public:
UFUNCTION(BlueprintSetter)
void UpdateTexture(class UTexture2D* NewPSize);
ā€™