I'm on 4.20.3.
I have a property exposed in C++ as follows:
UPROPERTY(EditDefaultsOnly)
TSubclassOf<AProjectile> ProjectileBlueprint;
This C++ class is inherited by a Blueprint class where I set this value to a AProjectile Blueprint class. The problem is this value resets to "None" every time I recompile, and I have to go into the Blueprint and set it again.
I've tried fixing this multiple by recreating the variables, and components, using different tags, moving it to private/public, but it always resets on every compile even if nothing changed in code.
Is this intended or am I doing something wrong?
I have a property exposed in C++ as follows:
UPROPERTY(EditDefaultsOnly)
TSubclassOf<AProjectile> ProjectileBlueprint;
This C++ class is inherited by a Blueprint class where I set this value to a AProjectile Blueprint class. The problem is this value resets to "None" every time I recompile, and I have to go into the Blueprint and set it again.
I've tried fixing this multiple by recreating the variables, and components, using different tags, moving it to private/public, but it always resets on every compile even if nothing changed in code.
Is this intended or am I doing something wrong?
Comment