EditAnywhere with base class variables

I can’t see to edit the UPROPERTY(s) of the base class from my inherited class.

Here’s the code:

Base class:

UCLASS() class AEventManager : public AActor
{
	GENERATED_BODY()

public:
	UPROPERTY(VisibleAnywhere) bool mLoadReplay = false;
	UPROPERTY(EditInstanceOnly) bool mSaveReplay = false;
. . .

And the inherited class:

UCLASS() class ASharedAPI : public AEventManager
{
	GENERATED_BODY()
    . . .

I can see the VisibleAnywhere mLoadReplay, but I can’t see nor edit the EditAnywhere mSaveReplay.

Is there a way to get this working?

Hey Sharsnik,

you’re code is:

UCLASS() class AEventManager : public AActor
 {
     GENERATED_BODY()
 
 public:
     UPROPERTY(VisibleAnywhere) bool mLoadReplay = false;
     UPROPERTY(EditInstanceOnly) bool mSaveReplay = false;
 . . .

I don’t see any EditAnywhere there. There is EditInstanceOnly and that means you can edit this field only for instances, e.g. spawned actors in the scene. You probably tried to edit this property in the BP defaults window and that is intended behaviour. You can look up EditInstanceOnly on docs.unrealengine.com.

Thanks,

Jarek

I tried a few configurations (Including EditAnywhere).

However, I think this behavior is a part of another issue I’m having with getting the code to detect correctly when not hot reloading. That thread is here:

The visibility of the inherited class doesn’t seem to work during hot reload, but it does work when I reload the editor (at least, when reloading the editor DOES work).