Segmentation Example

Example

You can target a feature flag to a specific group of players by combining attributes like Country, Version, Campaign, and Platform.

Example goal: Enable a new store layout only for:

  • Players in the US

  • On iOS

  • Running version 1.12.0 or higher

  • Who installed from the “holiday_2025” campaign

Example targeting rule (conceptual):

Feature Flag: abc_new_store

  • Country == "US"

  • Platform == "iOS"

  • Version >= "1.12.0"

  • Campaign == "holiday_2025"

Result:

  • Players who match all conditions receive the flag as enabled (or receive a specific variant/value).

  • Everyone else receives the default value.

If you're running this as an experiment, you can then split matching users into variants (ex: control vs new_store) and Lion Analytics will automatically track the experiment and assigned variant via ExperimentInfo.

Setup (Unity)

var flag = await FeatureFlagController.GetFeature("abc_new_store", false);
if (flag == null)
    return; // Not initialized or key missing

var config = JsonUtility.FromJson<NewStoreConfig>(flag.RawString);
// Use config to update your game

For new segment launches or experiments, coordinate with your Studio Manager to configure the targeting rules and rollout plan.

Last updated

Was this helpful?