diff --git a/packages/unity-interface/UnityInterface.ts b/packages/unity-interface/UnityInterface.ts index bc514a82c..aab754a4f 100644 --- a/packages/unity-interface/UnityInterface.ts +++ b/packages/unity-interface/UnityInterface.ts @@ -277,7 +277,11 @@ export class UnityInterface implements IUnityInterface { } public AddWearablesToCatalog(wearables: WearableV2[], context?: string) { - this.SendMessageToUnity('Main', 'AddWearablesToCatalog', JSON.stringify({ wearables, context })) + const jsonString = JSON.stringify({ wearables, context }) + const result = jsonString.match(/.{1,1306299}/g) || [] + for (let i = 0; i < result.length; i++) { + this.SendMessageToUnity('Main', 'AddWearablesToCatalog', result[i]) + } } public AddEmotesToCatalog(emotes: Emote[], context?: string) {