Controls whether disabled command state survives active variant changes on the same point.
ResetOnVariantChange is useful when variants represent temporary pages or modes and command state should be rebuilt when the active variant changes. KeepOnVariantChange is useful when a command is consumed and should remain disabled even if the point later resolves a different variant.
For state-driven command content where selecting an answer updates the active variant, KeepOnVariantChange is usually the expected setting if the same command id should stay consumed across the variant transition. If each variant is independent and should restore its own command availability, use ResetOnVariantChange.
UPROPERTY(EditAnywhere, BlueprintReadWrite, Category = "Interaction|Execution")
EInteractionRuntimeCommandStatePersistence StatePersistence = EInteractionRuntimeCommandStatePersistence::ResetOnVariantChange;
Use Cases
- Keep a consumed command option disabled after a variant changes.
- Reset temporary command state when variants are just UI pages or transient modes.
Notes
- This setting affects runtime command state across variant changes. It is separate from SavePolicy, which controls save/load persistence.