Skip to content

Unity

This guide outlines the steps involved after installing Hive SDK.

Initializing the Hive SDK Unity Plugin

To use the Hive SDK Unity Plugin, create a GameObject and add the following code. This code must be called before initializing Hive SDK.

void Awake () {
// Create a game object for the plugin.
hive.HIVEUnityPlugin.InitPlugin();
}

Scripting define symbols

The Hive SDK Unity plugin automatically adds preprocessor symbols (Custom Scripting Symbols) to check whether component packages are installed for each platform (Android, iOS, and so on).

You can check the added symbols in Project Settings > Player > Other Settings > Scripting Define Symbols. Be careful not to remove these symbols manually.

Add symbols

If your game needs to add other symbols, implement it by adding new values without overwriting the existing values.