Flagsmith for Unity

Identities and traits

Every FlagsmithBehaviour asks for flags as one identity, so segments, per-player overrides and experiments all work. Traits go in the Traits dictionary and are sent with the next refresh:

flagsmith.Traits["level"] = 12;
flagsmith.Traits["platform"] = Application.platform.ToString();
flagsmith.Traits["payer"] = true;
await flagsmith.Refresh();   // optional: apply now instead of waiting for the next refresh