How i can update displayName UProperty value in child class (UuazVehicle_C) to “uaz”?
Tried this (no work. UuazVehicle_C class have parent displayName UProperty value - “baseCar”):
UCLASS(Blueprintable)
class Ubase_car_C : public UAll_C { //derived from UObject
GENERATED_BODY()
UPROPERTY(EditAnywhere,BlueprintReadWrite) FString displayName;
public: Ubase_car_C() {
displayName = "baseCar";
UE_LOG(LogTemp, Warning, TEXT("constructor Ubase_car_C"));
};
};
UCLASS(Blueprintable)
class UuazVehicle_C : public Ubase_car_C {
GENERATED_BODY()
FString displayName; //problem here, need just delete this string...
public: UuazVehicle_C() {
displayName = "uaz";
UE_LOG(LogTemp, Warning, TEXT("constructor UuazVehicle_C"));
};
};
P.S.
UE_LOG(LogTemp, Warning, TEXT("displayName:%s"), *this->displayName);
in UuazVehicle_C constructor - show in log displayName:uaz