From e4e8350b253c85c76e39da6361b15a3689d9e67d Mon Sep 17 00:00:00 2001 From: Harrison Hough Date: Thu, 25 Apr 2024 08:45:29 +0300 Subject: [PATCH 1/2] fix: set config before load --- Runtime/NetworkPlayer.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Runtime/NetworkPlayer.cs b/Runtime/NetworkPlayer.cs index dd2afae..dd21c35 100644 --- a/Runtime/NetworkPlayer.cs +++ b/Runtime/NetworkPlayer.cs @@ -40,13 +40,12 @@ public void LoadAvatar(string url) private void SetPlayer(string incomingUrl) { AvatarObjectLoader loader = new AvatarObjectLoader(); - loader.LoadAvatar(incomingUrl); loader.AvatarConfig = config; + loader.LoadAvatar(incomingUrl); loader.OnCompleted += (sender, args) => { leftEye.transform.localPosition = AvatarBoneHelper.GetLeftEyeBone(args.Avatar.transform, true).localPosition; rightEye.transform.localPosition = AvatarBoneHelper.GetRightEyeBone(args.Avatar.transform, true).localPosition; - AvatarMeshHelper.TransferMesh(args.Avatar, gameObject); Destroy(args.Avatar); }; From ed93214582641f34fbf08b0fa8615edaa1f12472 Mon Sep 17 00:00:00 2001 From: Harrison Hough Date: Thu, 25 Apr 2024 10:29:58 +0300 Subject: [PATCH 2/2] chore: update version --- CHANGELOG.md | 7 ++++++- package.json | 2 +- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2f5d1c2..3954061 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -3,10 +3,15 @@ All notable changes to this project will be documented in this file. This project adheres to [Semantic Versioning](http://semver.org/). +## [0.3.2] - 2024.04.25 + +### Fixed +- Issue causing avatar config settings not wt be applied [#11](https://github.com/readyplayerme/rpm-unity-sdk-photon-support/pull/11) + ## [0.3.1] - 2024.03.01 ### Updated -- Added all possible mesh options to Photon Test Character for multi-mesh avatar support. [#241](https://github.com/readyplayerme/rpm-unity-sdk-photon-support/pull/7) +- Added all possible mesh options to Photon Test Character for multi-mesh avatar support. [#7](https://github.com/readyplayerme/rpm-unity-sdk-photon-support/pull/7) ## [0.3.0] - 2024.01.17 diff --git a/package.json b/package.json index ad23f90..144eb83 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "com.readyplayerme.photonsupport", - "version": "0.3.1", + "version": "0.3.2", "displayName": "Ready Player Me Photon Support", "description": "NetworkPlayer component that allows to use Ready Player Me avatars in Photon Unity Networking 2.", "unity": "2020.3",