Lion Studios
  • LionSDK Documentation
    • 📦Getting Started
    • Analytics
      • Validation
        • Event Validation
        • Lion Analytics QA Tool
        • Looker Events QA
      • A/B Testing
        • AB Test Tips (Experiment Best Practices)
      • Progression Event
      • Economy Event
      • Monetization Event
      • Advanced Ad Events
      • Interaction Events
      • Social Events
      • Debug Events
      • Other Events
      • Custom Events
      • API
        • Events
          • AbCohort
          • AppOpenShow
          • AppOpenEnd
          • AppOpenClicked
          • BannerRevenuePaid
          • BannerShowRequested
          • CharacterCreated
          • CrossPromoLoad
          • CrossPromoLoadFail
          • CrossPromoShow
          • CrossPromoStart
          • CrossPromoShowFail
          • CrossPromoEnd
          • Achievement
          • CrossPromoClick
          • DebugEvent
          • EconomyEvent
          • ErrorEvent
          • FunnelEvent
          • ShopEntered
          • Options
          • ProductViewed
          • GiftReceived
          • GiftSent
          • Heartbeat
          • ItemCollected
          • InAppPurchase
          • InterOpenStart
          • InterOpenLoadFail
          • InterOpenClicked
          • InterOpenRevenuePaid
          • InterOpenShow
          • InterOpenShowFail
          • InterOpenEnd
          • InterstitialClick
          • InterstitialEnd
          • InterstitialLoadFail
          • InterstitialLoad
          • InterstitialRevenuePaid
          • InterstitialShow
          • InterstitialShowFail
          • InterstitialStart
          • InviteReceived
          • InviteRewarded
          • InviteSent
          • GameStarted
          • FeatureUnlocked
          • NotificationOpened
          • MissionAbandoned
          • MissionCompleted
          • MissionFailed
          • MissionStarted
          • MissionStep
          • LevelAbandoned
          • LevelComplete
          • LevelFail
          • LevelStart
          • LevelStep
          • LevelUp
          • SkillUsed
          • NewPlayer
          • HandAction
          • SkillUpgraded
          • CharacterUpdated
          • PowerUpUsed
          • PredictionResult
          • RewardVideoEnd
          • RewardVideoOpportunity
          • RewardVideoClick
          • RewardVideoRevenuePaid
          • RewardVideoShow
          • RewardVideoShowFail
          • RewardVideoCollect
          • RewardVideoStart
          • Social
          • SocialConnect
          • Support
          • UiInteraction
          • ItemActioned
          • CharacterDeleted
          • AppOpenStart
          • AppOpenShowFail
          • AppOpenLoadFail
          • AppOpenLoad
          • InterOpenLoad
          • RewardVideoLoadFail
          • RewardVideoLoad
        • All Event Parameters
        • Helper Functions
        • Events Embedded
      • Experiment Events
    • Features
      • Remote Configs
        • Balancy Adapter
          • [WIP] - AB Experiments (Balancy)
        • Remote Configuration
        • Firebase
          • AB Experiments (Firebase)
        • Satori
          • A/B Experiments (Satori)
        • LiveOps Remote Config
          • Test Adapter
      • Loading Scene
      • Ads
      • IAP Validation
      • Adapter Stabilizer
      • Cloud Build
      • Options Menu
      • WhoAmI Service
    • Third-party SDKs
      • Amazon Publisher Services (APS)
      • Adjust
      • MAX SDK
        • Max Consent Flow
      • Facebook
      • Helpshift - Customer Support
    • Jenkins Build Server Solution Documentation
      • Administration of Jenkins Slack Trigger
      • Screenshare Into Jenkins Build Agents
      • Common Jenkins Build Issues
      • Jenkins Slack App Usage Guide
    • Detected Issues
      • API Level is too low
      • Publishing Settings Issue
      • Android & iOS Resolver Settings
      • SDK Settings Mismatch
      • Facebook Client Token Empty Issue
      • Adjust Id Empty Issue
Powered by GitBook
On this page
  1. LionSDK Documentation
  2. Features
  3. Remote Configs

Balancy Adapter

PreviousRemote ConfigsNext[WIP] - AB Experiments (Balancy)

Last updated 3 months ago

Introduction

Balancy allows developers to:

  • Change the behaviour and appearance of the game remotely and do A/B testing.

Install LionSDK

Complete the steps in Getting Started.

Install Balancy

  • Go to Balancy Page here and follow Plugin Installation part only (skip everything else).

If you didn’t setup the game yourself on Balancy dashboard then ask your Lion point of contact to give you Email and Password for Balancy authorization.

Setup

After installing Balancy SDK, open the LiveOps tab in LionStudios/Settings Manager. Select Balancy as LiveOpsType in LiveOps Settings tab.

To initialize balancy,

  • Check on “Auto Initialize” checkbox.

  • Enter the Game Id and Public Key of your game.

If you didn’t setup the game yourself on Balancy dashboard then ask your Lion point of contact to give you Game Id and Public Key for Balancy.

Implementation

Follow Balancy Documentation to know about Templates, user-properties and A/B testing in Balancy.

Implementation on Balancy Side:

Go to Balancy your project. Under Control/Data Structure, create a new template with type “Singleton” and name it “LionRemoteConfigs” . Create parameters, each column (parameter) means new remote config.

Template-Example:

Data-Example:

Implementation on Unity side

Follow LiveOps “Usage” part which tells what type of functions are available.

Crucial step as required by Balancy:

Remember to import Balancy code in Unity by going to Tools → Balancy → your account authorization → select your game → Generate Code. More information on this can be found here

Example:

void **Awake**(){    
		if (!LionCore.IsInitialized)    
		{        
				LionCore.OnInitialized += delegate        
				{            
						Debug.Log("Call LiveOps functions here"); 
				
						int health = LiveOpsController.GetValue("MaxHealth", -1);
						GunData gunData = LiveOpsController.
						GetValue("GunData", new GunData("MyGun", 5));
				};    
		}
}

Don’t call LiveOps functions until Lion Core is initialized.

LiveOps.SetUserProperty function will look into builtin user properties first. If no property with the given property name is found then the function will look into user/custom defined properties in all user profiles. To know more about user properties follow Balancy documentation.

If you use a loading scene that waits for Lion Core to be initialized, then you can always call LiveOps (Balancy) code in the following scenes. See our provided Loading Scene: Loading Scene

  • Introduction
  • Install LionSDK
  • Install Balancy
  • Setup
  • Implementation