Skip to content

Commit a9009ec

Browse files
committed
Merge branch 'hotfix/v0.2.2' into main
2 parents 19631df + 7cd863b commit a9009ec

18 files changed

+4908
-27
lines changed

CHANGELOG.md

+11-2
Original file line numberDiff line numberDiff line change
@@ -3,7 +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-
## [0.2.1] - 2024.MM.DD
6+
## [0.2.1] - 2024.10.25
7+
8+
### Updated
9+
- Updated assembly name to prevent naming conflicts
10+
- File menu path updated to match other RPM packages
11+
12+
### Fixed
13+
- Fixed an issue with missing materials in the scene
14+
15+
## [0.2.1] - 2024.03.04
716

817
### Updated
918
- Netcode Character Prefab updated with multimesh support
@@ -13,7 +22,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).
1322
- Variable name typos
1423

1524
### Removed
16-
- Figtihng Game Sample removed
25+
- Fighting Game Sample removed
1726

1827
## [0.2.0] - 2023.08.14
1928

Editor/TransferPrefab.cs

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public static class TransferPrefab
99
private const string NEW_PREFAB_PATH = "Assets/Ready Player Me/Resources/RPM_Netcode_Character.prefab";
1010
private const string PREFAB_ASSET_NAME = "t:prefab RPM_Netcode_Character";
1111

12-
[MenuItem("Ready Player Me/Transfer Netcode Prefab", priority = 34)]
12+
[MenuItem("Tools/Ready Player Me/Transfer Netcode Prefab", priority = 34)]
1313
public static void Transfer()
1414
{
1515
var guids = AssetDatabase.FindAssets(PREFAB_ASSET_NAME);

Runtime/NetworkPlayer.cs

+11-5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
using Unity.Netcode;
44
using Unity.Collections;
55
using ReadyPlayerMe.Core;
6+
using UnityEngine.Events;
67

78
namespace ReadyPlayerMe.NetcodeSupport
89
{
@@ -19,8 +20,9 @@ public class NetworkPlayer : NetworkBehaviour
1920

2021
public static string InputUrl = string.Empty;
2122
public NetworkVariable<FixedString64Bytes> avatarUrl = new NetworkVariable<FixedString64Bytes>(writePerm: NetworkVariableWritePermission.Owner);
22-
public event Action OnPlayerLoadComplete;
23-
23+
[Space(10)]
24+
public UnityEvent OnPlayerLoadComplete;
25+
2426
private Transform leftEye;
2527
private Transform rightEye;
2628

@@ -53,16 +55,20 @@ public override void OnNetworkSpawn()
5355
};
5456
}
5557

58+
private void FixEyePositions(GameObject newAvatar)
59+
{
60+
leftEye.transform.localPosition = newAvatar.transform.Find(FULL_BODY_LEFT_EYE_BONE_NAME).localPosition;
61+
rightEye.transform.localPosition = newAvatar.transform.Find(FULL_BODY_RIGHT_EYE_BONE_NAME).localPosition;
62+
}
63+
5664
private void LoadAvatar(string url)
5765
{
5866
var loader = new AvatarObjectLoader();
5967
loader.LoadAvatar(url);
6068
loader.AvatarConfig = config;
6169
loader.OnCompleted += (sender, args) =>
6270
{
63-
leftEye.transform.localPosition = args.Avatar.transform.Find(FULL_BODY_LEFT_EYE_BONE_NAME).localPosition;
64-
rightEye.transform.localPosition = args.Avatar.transform.Find(FULL_BODY_RIGHT_EYE_BONE_NAME).localPosition;
65-
71+
FixEyePositions(args.Avatar);
6672
AvatarMeshHelper.TransferMesh(args.Avatar, gameObject);
6773
Destroy(args.Avatar);
6874
OnPlayerLoadComplete?.Invoke();

Runtime/ReadyPlayerMe.NetcodeSupport.asmdef

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,9 @@
11
{
2-
"name": "NewAssembly",
2+
"name": "ReadyPlayerMe.NetcodeSupport",
33
"rootNamespace": "",
44
"references": [
55
"GUID:1491147abca9d7d4bb7105af628b223e",
66
"GUID:e0cd26848372d4e5c891c569017e11f1",
7-
"GUID:69ab3f10cf42d0b42a6cd1353c374377",
87
"GUID:96af4ea235d92d245a095007c6ca3701"
98
],
109
"includePlatforms": [],

Samples~/AvatarControl/Materials/Box.mat

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ Material:
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: Box
1111
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12-
m_ValidKeywords:
13-
- _EMISSION
14-
- _NORMALMAP
12+
m_ValidKeywords: []
1513
m_InvalidKeywords: []
16-
m_LightmapFlags: 2
14+
m_LightmapFlags: 4
1715
m_EnableInstancingVariants: 0
1816
m_DoubleSidedGI: 0
1917
m_CustomRenderQueue: -1

Samples~/AvatarControl/Materials/Floor.mat

+2-4
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,9 @@ Material:
99
m_PrefabAsset: {fileID: 0}
1010
m_Name: Floor
1111
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
12-
m_ValidKeywords:
13-
- _EMISSION
14-
- _NORMALMAP
12+
m_ValidKeywords: []
1513
m_InvalidKeywords: []
16-
m_LightmapFlags: 2
14+
m_LightmapFlags: 4
1715
m_EnableInstancingVariants: 0
1816
m_DoubleSidedGI: 0
1917
m_CustomRenderQueue: -1

Samples~/AvatarControl/Materials/Floor.mat.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/AvatarControl/Scenes/Avatar Control.unity renamed to Samples~/AvatarControl/Scenes/AvatarControl.unity

+5-4
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ RenderSettings:
3838
m_ReflectionIntensity: 1
3939
m_CustomReflection: {fileID: 0}
4040
m_Sun: {fileID: 705507994}
41-
m_IndirectSpecularColor: {r: 0.18028353, g: 0.2257137, b: 0.30692255, a: 1}
41+
m_IndirectSpecularColor: {r: 0.4465791, g: 0.49641317, b: 0.57481784, a: 1}
4242
m_UseRadianceAmbientProbe: 0
4343
--- !u!157 &3
4444
LightmapSettings:
@@ -1262,7 +1262,8 @@ MonoBehaviour:
12621262
NetworkConfig:
12631263
ProtocolVersion: 0
12641264
NetworkTransport: {fileID: 1754146316}
1265-
PlayerPrefab: {fileID: 918681697409016310, guid: 39bfa80ee51e22c4b9b3847156eb4def, type: 3}
1265+
PlayerPrefab: {fileID: 918681697409016310, guid: 39bfa80ee51e22c4b9b3847156eb4def,
1266+
type: 3}
12661267
Prefabs:
12671268
NetworkPrefabsLists:
12681269
- {fileID: 11400000, guid: 8c66e821e14565f40a0c65c9a7bac000, type: 2}
@@ -1637,7 +1638,7 @@ GameObject:
16371638
- component: {fileID: 5634591147473430356}
16381639
- component: {fileID: 5634591147473430357}
16391640
m_Layer: 0
1640-
m_Name: Plane
1641+
m_Name: Floor
16411642
m_TagString: Untagged
16421643
m_Icon: {fileID: 0}
16431644
m_NavMeshLayer: 0
@@ -1663,7 +1664,7 @@ MeshRenderer:
16631664
m_RenderingLayerMask: 1
16641665
m_RendererPriority: 0
16651666
m_Materials:
1666-
- {fileID: 2100000, guid: 13818617b2642f8458614799effcd782, type: 2}
1667+
- {fileID: 2100000, guid: 307421f4d1c6ec94f94579be6b8b8a6e, type: 2}
16671668
m_StaticBatchInfo:
16681669
firstSubMesh: 0
16691670
subMeshCount: 0

Samples~/AvatarControl/Scenes/Avatar Control.unity.meta renamed to Samples~/AvatarControl/Scenes/AvatarControl.unity.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/AvatarControl/Texture/Grid_BaseMap.png.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/AvatarControl/Texture/Grid_Emissive.png.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/AvatarControl/Texture/Grid_Normal.png.meta

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/FightingGame.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Samples~/FightingGame/Scenes.meta

+8
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)