Can I change the uproperties of inherited variables?

To illustrate the example:

UCLASS()
class ABaseObject : public AActor
{

public:
	GENERATED_BODY()

	// Sets default values for this actor's properties
	ABaseObject();
	
	UPROPERTY(EditAnywhere, BlueprintReadWrite)
	UActionTypeEnum ActionType;
};

and

 UCLASS()
 class ADerivedObject : public ABaseObject
 {
 
 public:
     GENERATED_BODY()
 
     // Sets default values for this actor's properties
     ADerivedObject();
     
     UPROPERTY(VisibleAnywhere, BlueprintReadOnly)
     UActionTypeEnum ActionType;
 };

I have a temporary solution to just make the base class Visible Only and keep the value undefined, but I wanted to offer a situation with more freedom to create Blueprints from Base Objects (to set the action type personally) or to create Blueprints from the Derived Objects (that would have action types set specifically in the constructor).

Ok, that was what I had assumed but I wanted to ask because if I were overlooking something I could use akin to “override” for functions then the other situation was more ideal.

Thanks for clearing that up.

Hey Huogo-

Unfortunately what you are attempting would be considered re-declaring the variable which wouldn’t work. If you wanted to access the same variable with different UPROPERTY specifiers, the best option would be to create a new variable in the child with its own UPROPERTY and then set that variable to the desired variable from the parent.

Cheers