Skip to main content
The simplest integration is dropping one of the four prebuilt button prefabs into a Canvas. With the integration keys in Almedia → Settings, that is the whole integration. The button initializes the SDK by itself when nothing else has and Auto-Initialize From Prefabs is on.
  1. From the package, drag one of these into the scene’s Canvas:
    • Packages/com.almedia.sdk/Runtime/Prefabs/LinkButtonA.prefab
    • LinkButtonB.prefab
    • LinkButtonC.prefab
    • LinkButtonD.prefab
  2. Position it as desired.
  3. Press Play. The button is two-state and stays visible as much as possible:
A linked player whose reward hub the backend has withdrawn gets no button rather than one that opens nothing, and the button reappears by itself if the hub comes back - it tracks CanShowRewardHub live. Promo analytics follow what the player saw, so that case reports promo_load with Hidden. The bundled UI needs an active EventSystem in the scene to receive taps. A bundled prefab shown without one logs a warning through OnLog that names the prefab and the scene. For full control, ignore the prefabs and drive it yourself - see Trigger linking programmatically and Reward hub.