1. Scene setup
Last updated
Add the TyrSDKPlugin prefab to your scene (ideally once to your initial or bootstrap scene) from:
Packages/com.tyrads.unity-sdk/Runtime/Resources/TyrAds/Prefabs/TyrSDKPlugin.prefabThis enables API access via TyrSDKPlugin.Instance in code.
The SDK UI is built using Unity’s standard Event System (UGUI). All interactive elements (buttons, toggles, input fields, etc.) rely on an active EventSystem in the scene to function correctly.
Unity UI input is processed through the EventSystem and an associated input module (e.g. StandaloneInputModule or InputSystemUIInputModule). If no EventSystem is present, UI elements will not receive input events, which may appear as if the UI is frozen or unresponsive.
If your project:
Uses a custom input system, or
Does not include a default EventSystem in the scene,
you must ensure that an EventSystem is available when the SDK UI is active.
Add an EventSystem GameObject to the scene where the SDK prefab is used.
Steps:
Create a new GameObject
Add component: EventSystem
Add one of the input modules:
StandaloneInputModule (old input system)
InputSystemUIInputModule (new input system)
Unity supports only one active EventSystem per scene
Multiple EventSystem instances may cause undefined behavior or input issues
The SDK does not automatically include an EventSystem to avoid conflicts with existing project setups
Last updated