diff --git a/Editor/ReadyPlayerMe.NetcodeSupport.Editor.asmdef b/Editor/ReadyPlayerMe.NetcodeSupport.Editor.asmdef index 7fc576a..9611cb2 100644 --- a/Editor/ReadyPlayerMe.NetcodeSupport.Editor.asmdef +++ b/Editor/ReadyPlayerMe.NetcodeSupport.Editor.asmdef @@ -2,7 +2,9 @@ "name": "ReadyPlayerMe.NetcodeSupport.Editor", "rootNamespace": "", "references": [], - "includePlatforms": [], + "includePlatforms": [ + "Editor" + ], "excludePlatforms": [], "allowUnsafeCode": false, "overrideReferences": false, diff --git a/Runtime/NetworkPlayer.cs b/Runtime/NetworkPlayer.cs index ea26bc4..2402bdc 100644 --- a/Runtime/NetworkPlayer.cs +++ b/Runtime/NetworkPlayer.cs @@ -12,21 +12,21 @@ namespace ReadyPlayerMe.NetcodeSupport [RequireComponent(typeof(NetworkObject))] public class NetworkPlayer : NetworkBehaviour { + private const string FULL_BODY_LEFT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/LeftEye"; + private const string FULL_BODY_RIGHT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/RightEye"; + [SerializeField] private AvatarConfig config; + public static string InputUrl = string.Empty; + public NetworkVariable avatarUrl = new NetworkVariable(writePerm: NetworkVariableWritePermission.Owner); + public event Action OnPLayerLoadComplete; + private Animator animator; private Transform leftEye; private Transform rightEye; private SkinnedMeshRenderer[] skinnedMeshRenderers; - - private const string FULL_BODY_LEFT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/LeftEye"; - private const string FULL_BODY_RIGHT_EYE_BONE_NAME = "Armature/Hips/Spine/Spine1/Spine2/Neck/Head/RightEye"; - - public static string InputUrl = string.Empty; - public NetworkVariable avatarUrl = new NetworkVariable(writePerm: NetworkVariableWritePermission.Owner); - public event Action OnPLayerLoadComplete; private void Awake() {