Download

Making a C++ UPROPERTY visible in BP child's Variables List

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:

848c1f57c95ae0155d5a8e444a0491e27b51b15d.png

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):

ue4-2.PNG

What do I need to do in order to have those C++ properties show up in the BP class variables list?

Right click on the variables list (or root component, can’t remember exactly where, I’m not in front of UE atm, try a few places) and check that ‘Show Inherited Members’ or similar is checked.

Well, that works, thanks a lot.
For the records:

2e138deb463a5956a6a097159bc77412bc33d9bc.png