Skip to content

Commit 14326c9

Browse files
Merge branch 'hotfix/v4.1.2' into main
1 parent 9f95278 commit 14326c9

File tree

6 files changed

+16
-4
lines changed

6 files changed

+16
-4
lines changed

CHANGELOG.md

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,16 @@
33
All notable changes to this project will be documented in this file.
44
This project adheres to [Semantic Versioning](http://semver.org/).
55

6+
## [4.1.2] - 2023.12.20
7+
8+
### Fixed
9+
- add preserve attribute to CategoryConverter in AvatarCreator by @harrisonHough in [#193](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/193)
10+
11+
## [4.1.1] - 2023.11.29
12+
13+
### Fixed
14+
- fixed json converters in AvatarCreator getting stripped on android or webgl builds by @rYuuk in [#188](https://github.com/readyplayerme/rpm-unity-sdk-core/pull/188)
15+
616
## [4.1.0] - 2023.11.29
717

818
### Updated

Runtime/AvatarCreator/Data/AvatarProperties.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ public struct AvatarProperties
1414
public OutfitGender Gender;
1515
[JsonConverter(typeof(BodyTypeConverter))]
1616
public BodyType BodyType;
17-
[JsonConverter(typeof(CategoryDictionaryConverter))]
17+
[JsonConverter(typeof(PartnerAssetsDictionaryConverter))]
1818
public Dictionary<Category, object> Assets;
1919
public string Base64Image;
2020
}

Runtime/AvatarCreator/JsonHelpers/CategoryConverter.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
using System;
22
using Newtonsoft.Json;
33
using Newtonsoft.Json.Linq;
4+
using UnityEngine.Scripting;
45

56
namespace ReadyPlayerMe.AvatarCreator
67
{
8+
[Preserve]
79
public class CategoryConverter : JsonConverter
810
{
911
public override bool CanConvert(Type objectType)

Runtime/AvatarCreator/JsonHelpers/PartnerAssetsDictionaryConverter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
namespace ReadyPlayerMe.AvatarCreator
88
{
99
[Preserve]
10-
public class CategoryDictionaryConverter : JsonConverter<Dictionary<Category, object>>
10+
public class PartnerAssetsDictionaryConverter : JsonConverter<Dictionary<Category, object>>
1111
{
1212
public override void WriteJson(JsonWriter writer, Dictionary<Category, object> value, JsonSerializer serializer)
1313
{

Runtime/Data/ApplicationData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ namespace ReadyPlayerMe.Core
66
{
77
public static class ApplicationData
88
{
9-
private const string SDK_VERSION = "v4.1.1";
9+
private const string SDK_VERSION = "v4.1.2";
1010
private const string TAG = "ApplicationData";
1111
private const string DEFAULT_RENDER_PIPELINE = "Built-In Render Pipeline";
1212
private static readonly AppData Data;

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "com.readyplayerme.core",
3-
"version": "4.1.1",
3+
"version": "4.1.2",
44
"displayName": "Ready Player Me Core",
55
"description": "This Module contains all the core functionality required for using Ready Player Me avatars in Unity, including features such as: \n - Module management and automatic package setup logic\n - Avatar loading from .glb files \n - Avatar creation \n - Avatar and 2D render requests \n - Optional Analytics\n - Custom editor windows\n - Sample scenes and assets",
66
"unity": "2020.3",

0 commit comments

Comments
 (0)