Overview
WCGASWorldContextData is a Data Asset that defines environmental contexts and their effects on elemental abilities/effects in the Wonderscape Creations GAS Ally plugin. It allows designers to create modular context definitions (weather, biomes, time of day, magical zones) that dynamically modify damage, duration, crit chance, and other gameplay parameters based on element tags without writing any C++ code, making world context configuration a fully designer-driven workflow. Each context is a separate data asset, enabling modular design where contexts can be added or removed without code changes.
Creating a World Context Data Asset
Using the Wonderscape GAS Ally Menu
- Open the Content Browser
- Right-click in any folder where you want to create the asset
- Navigate to: Wonderscape GAS Ally > World Context Data
- Give your new asset a descriptive name (e.g.,
DA_Context_Rain, DA_Context_Night, DA_Context_Forest)
- Double-click the asset to open it and configure its properties
How World Context Data Works
Registration Flow
- Project Settings Configuration
- Navigate to: Edit → Project Settings → Plugins → WC GAS Ally → World Context
- Your World Context Data assets are added to the
World Context Data array
- Automatic Registration at World Initialization
- The WCGASWorldContextSubsystem initializes when the World starts
- Loads all World Context Data assets from Project Settings
- Validates each asset (checks for unique ContextTags, valid ElementRules)
- Creates cached lookup data for fast runtime queries
- Runtime Activation
- Global Contexts: Activated via
SetGlobalContext() (affects all actors)
- Zone Contexts: Managed by WCGASContextVolume actors in the level
- Actor Overrides: Set via
SetActorContextOverride() for specific actors
- Query Evaluation
- Active contexts from all layers (Global + Zone + Actor) are collected
- Modifiers are filtered by element tag
- Values are combined using the configured CombineMode
- Final modifier returned to ExecCalcs for damage/effect modification
Configuration Properties
Identity