what is the META property of UPROPERTY?

in the tutorial batterycollector , that girl write this
UPROPERTY(VisibleAnywhere,BlueprintReadOnly,Category = “PickupMesh”,meta = (AllowPrivateAccess = “true”))

looks like this is all the valid meta propertis?

where is this “AllowPrivateAccess” come from? even not found it in any very offical document

The Wiki is user maintained, so don’t take it as authoritative. Feel free to update it as you find missing items (like this one) :slight_smile:

If you search for AllowPrivateAccess you can find some documentation within the code base as to what it does:

thank you!

where can i get a sneak peek at all these mysterious meta flags?:rolleyes:

In \Engine\Source\Runtime\CoreUObject\Public\UObject\ObjectMacros.h you will find a number of enums which define the various parameters to the UE4 macros (UCLASS, USTRUCT, UPROPERTY etc). I think the first super good info starts at namespace UC (the values you can pass to a UCLASS macro), but keep scrolling down to namespace UM for the metadata related definitions.

Another place to look is in the FBlueprintMetadata struct which is defined in \Engine\Source\Editor\BlueprintGraph\Classes\EdGraphSchema_K2.h. These are variable names such as “MD_ChildCanTick” but as you might deduce, the Meta value would be “ChildCanTick” which is defined in the associated cpp file.

Cheers,

Jonathan

cooool! really appreciate thanks!