Could not open the editor: The file does not exist.

本文介绍了一种常见问题:在Eclipse中打开项目时提示文件不存在且项目消失的情况及其原因。通常是因为关闭Eclipse后移动或删除了项目的本地文件夹。解决办法很简单,只需重新导入项目即可。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

当你打开eclipse时候出现Could not open the editor: The file does not exist.并且之前的项目不见了。

主要原因是在你关闭eclipse之后移动了该项目在本地的文件或者删除了本地文件

重新导入项目就OK了

Assets\Scripts\Basic\Net\Commands\ClientCommand\RecvRecenterCommand.cs(9,15): error CS0246: The type or namespace name 'Valve' could not be found (are you missing a using directive or an assembly reference?) using UnityEngine; using System.Collections.Generic; using Basic.Managers; using Basic.Net.Protocol; using Basic.Net.Sockets; using System; using PureMVC.Patterns; using UnityEngine.XR; using Valve.VR; [Cmd(ProtocolCodes.VR_RECENTER, typeof(bool), "VR头盔校准", false)] public class RecvRecenterCommand : Command { public UIProxy proxy { get { return Facade.Instance.RetrieveProxy(UIProxy.NAME) as UIProxy; } } public override void AddEvents() { ProtocolManager.instance.AddProtocolListent(ProtocolCodes.VR_RECENTER, Recenter); } private void Recenter(params object[] args) { int errorCode = (int)args[0]; bool recvBool = (bool)args[1]; if (UnityEngine.XR.XRDevice.model.Contains("VIVE") || UnityEngine.XR.XRDevice.model.Contains("vive")) RecenterHTC(); else if (UnityEngine.XR.XRDevice.model.Contains("htc") || UnityEngine.XR.XRDevice.model.Contains("htc")) RecenterHTC(); else RecenterXR(); } void RecenterHTC() { Valve.VR.OpenVR.Chaperone.ResetZeroPose(Valve.VR.ETrackingUniverseOrigin.TrackingUniverseStanding); Valve.VR.OpenVR.Compositor.SetTrackingSpace(Valve.VR.ETrackingUniverseOrigin.TrackingUniverseStanding); } void RecenterXR() { List<XRInputSubsystem> subsystems = new List<XRInputSubsystem>(); SubsystemManager.GetInstances<XRInputSubsystem>(subsystems); for (int i = 0; i < subsystems.Count; i++) { subsystems[i].TryRecenter(); } } } unity打包到Linux平台时报错2019.4.17版本
最新发布
06-26
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值