Skip to content

Commit 9a22631

Browse files
committed
fix: made asmdef editor only
1 parent e309a47 commit 9a22631

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

Editor/ReadyPlayerMe.NetcodeSupport.Editor.asmdef

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,9 @@
22
"name": "ReadyPlayerMe.NetcodeSupport.Editor",
33
"rootNamespace": "",
44
"references": [],
5-
"includePlatforms": [],
5+
"includePlatforms": [
6+
"Editor"
7+
],
68
"excludePlatforms": [],
79
"allowUnsafeCode": false,
810
"overrideReferences": false,

Runtime/NetworkPlayer.cs

+7-7
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,21 @@ namespace ReadyPlayerMe.NetcodeSupport
1212
[RequireComponent(typeof(NetworkObject))]
1313
public class NetworkPlayer : NetworkBehaviour
1414
{
15+
private const string FULL_BODY_LEFT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/LeftEye";
16+
private const string FULL_BODY_RIGHT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/RightEye";
17+
1518
[SerializeField] private AvatarConfig config;
1619

20+
public static string InputUrl = string.Empty;
21+
public NetworkVariable<FixedString64Bytes> avatarUrl = new NetworkVariable<FixedString64Bytes>(writePerm: NetworkVariableWritePermission.Owner);
22+
public event Action OnPLayerLoadComplete;
23+
1724
private Animator animator;
1825

1926
private Transform leftEye;
2027
private Transform rightEye;
2128

2229
private SkinnedMeshRenderer[] skinnedMeshRenderers;
23-
24-
private const string FULL_BODY_LEFT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/LeftEye";
25-
private const string FULL_BODY_RIGHT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/RightEye";
26-
27-
public static string InputUrl = string.Empty;
28-
public NetworkVariable<FixedString64Bytes> avatarUrl = new NetworkVariable<FixedString64Bytes>(writePerm: NetworkVariableWritePermission.Owner);
29-
public event Action OnPLayerLoadComplete;
3030

3131
private void Awake()
3232
{

0 commit comments

Comments
 (0)