Testing
Setting Spaces Environment
- When testing your Spaces Integration, make sure
envis set toDEVinSpacesController.csin\Spaces\Scriptspublic class SpacesController
{
// Rest-of-the-code
public static string spacesStatus = "NOT_INITIALIZED";
public static string prodAPIKey = "<YOUR-PROD-API-KEY-IS-PRESENT-HERE>";
public static string devAPIKey = "<YOUR-DEV-API-KEY-IS-PRESENT-HERE>";
public static string env = "DEV"; //SET IT TO PROD OR DEV Appropriately
// Rest-of-the-code
} - The
PRODenvironment will not be set default. When you are ready to push your game live, kindly inform us, we will enable thePRODenvironment. After that you must setenvis toPRODand then only generate the game build to push it live in production.
Platform Handling
v1.6.0supports UnityWEBGL,ANDROID,EDITORplatforms. Based on the platform you had selected on Game Onboard Sheet, Spaces package will support that specific platform along with theEDITORplatform.- If you game supports multiple platforms, You will be receiving separate
Spaces.Unity.WebGl.Sdk.V2.dllfile for each platform. You need to use the appropriate file when building the game for that specific platform. You need to replace theSpaces.Unity.WebGl.Sdk.V2.dllfile. it is present in\Spaces\Resources\folder