I have a C++ class derived from AGameMode, and a BP class derived from that custom C++ class.
Within the C++ class I have two variables, UPROPERTY’s, that should show up in the list of variables of the BP class:
// A list of NPC spawn points in the current map UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Spawn Points") TArray<ATargetPoint*> SpawnPoints; // The number of NPC spawn points available in array SpawnPoints UPROPERTY(VisibleAnywhere, BlueprintReadOnly, Category = "Spawn Points") int32 NumSpawnPoints;
Now in the BP class these two variables show up correctly in the Details tab:
However, they do not show up in the Variables list of the BP class (it only contains a variable added directly to the BP class):
What do I need to do in order to have those C++ properties show up in the BP class variables list?