Legacy
Migrate from v2 to v3
Here is the legacy Unity package for Inworld. Not only is the new version 3 SDK incompatible with the old version 2, but the usage of some APIs in the new version 3 is also different. For information on how to merge them, please refer to the following article for more specific details.
Version 2
Inworld Unity SDK v2 is a powerful cross-platform virtual character integration plugin for Unity. With this plugin, you can easily add virtual characters to your Unity scene and communicate with them.
Before you get started, we would like to walk you through our compatibility requirements, assets, and API references. If you prefer a quick tutorial, you can check out the following video:
Watch this video to learn how to import the default character to your scene:
To enhance your virtual characters, our v2 Unity SDK plugin can be easily integrated with other features such as:
NewtonSoft Json Issues
The legacy samples in version 2 with Ready Player Me avatars (referred to as RPM), depends on Newtonsoft Json and GLTFUtility.
By default, the Newtonsoft Json package is automatically added into Unity. However, it may not be applied to some templates or may be removed in your package.json
. If you encounter the error error CS2046: The type or namespace name 'NewtonSoft' could not be found
or errors related to JObject, as shown in the image below:
Please refer to this page for more information.
When building an app for certain platforms, you may encounter the following errors if your Unity Editor's Packages do not include Newtonsoft.Json:
ILLink: error IL1999: ERROR: Failed to resolve base type Newtonsoft.Json.JsonConverter for type Siccity.GLTFUtility.Converters.ColorRGBConverter in assembly Siccity.GLTFUtility.dll when linking against the UnityAot-Linux profile
Fatal error in Unity CIL Linker
Unity.Linker.StrippingResolutionBaseTypeException: ERROR: Failed to resolve base type Newtonsoft.Json.JsonConverter for type Siccity.GLTFUtility.Converters.ColorRGBConverter in assembly Siccity.GLTFUtility.dll when linking against the UnityAot-Linux profile
at Unity.Linker.MonoBehaviorUtilities.DerivesFrom(UnityLinkContext context, TypeDefinition type, String[] possibleBaseNames)
...
In this case, please delete the entire folder Assets\Inworld\Inworld.Samples.RPM\Plugins\ThirdParty\NewtonSoftJson
, then go to Window > Package Manager
, click + > Add package by name
, and enter com.unity.nuget.newtonsoft-json
.
Version 1
The Legacy Inworld AI Unity SDK is cross-platform virtual character integration plugin for Unity. It supports communication in 2D.
⚠️ Note: The API for the legacy package may be different from the current one.
Download
You can download our Unity Integration package here. Before getting you started, this tutorial series will begin with an overview of compatibility, assets, and API references.