Using pragma Regions for Code Folds
Pragma regions let us group a block of code that can be expanded or collapsed.
#pragma region TriggerCount
// Whether to use a maximum trigger count.
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="Effect|Advanced", meta=(InlineEditConditionToggle))
bool bUseTriggerCountMax = false;
// The maximum number of times the interaction can be triggered.
UPROPERTY(BlueprintReadWrite, EditAnywhere, Category="Effect|Advanced", meta=(EditCondition="bUseTriggerCountMax"))
int32 TriggerCountMax = 1;
// The number of times the effect has been triggered.
UPROPERTY(BlueprintReadOnly, Category="Effect|Advanced", FieldNotify)
int32 TriggerCount = 0;
#pragma endregion
Modern IDEs typically support hovering over a collapsed pragma region to see the region contents.