Skip to main content

Unity Initialization

In your Unity project, add an empty game object to the first scene, attach the MoEGameObject.cs script, and set the App ID as shown below
SDK Intialization1
SDK Intialization

MoEngage supports two ways to initialize the SDK: manually in code, or through a native configuration file.
Unity iOS SDK supports file-based initialization only. Manual initialization is available for Android only.

Manual Initialization

Initialize the SDK programmatically in your Android Application class.

File Based Initialization

Initialize the SDK using a native configuration file, keeping the Workspace ID and settings separate from your application logic.