The parameters that are passed to the UPROPERTY() macro specify a couple of important pieces of information regarding the variable. In the preceding example, we specified the following:
- EditAnywhere: This means that the property can be edited either directly from the Blueprint, or on each instance of the UClass object as placed
in the game level. Contrast this with the following:
- EditDefaultsOnly: The blueprint's value is editable, but it is not editable on a per-instance basis.
- EditInstanceOnly: This would allow editing of the property in the game-level instances of the UClass object, and not on the base blueprint itself.
- BlueprintReadWrite: This indicates that the property is both readable and writable from the blueprints ...