该系统找不到指定的错误与代码 - 合成C#

发布于 2025-02-13 21:43:10 字数 622 浏览 0 评论 0原文

我的代码嗨,我正在使用Unity和vs Code,我尝试调试我的代码,我和我一起进行调试,我得到“系统找不到指定的路径”。错误。我的道路是“ c:\ users \ umut \ desktop \ projects \ projects \ endless2 \ Assets \ last。我的路径中没有任何空间,但是在开始C驱动器的开头C驱动器很小,但应该是更大的字母(C )。它与之相关,还是有其他原因造成此错误? 它与SmallL“ C”字母有关,该如何解决?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Last : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
    Debug.Log("Hi")
}

// Update is called once per frame
void Update()
{
    
}
}

My CodeHi I am working with Unity and Vs code and I tried to debug my code and I got "The system cannot find the path specified." error. My path is "c:\Users\UMUT\Desktop\Projects\Endless2\Assets\Last. I don't have any space in my path but in the beginning c letter of C drive is small but it should be bigger letter (C).İs it related to that or are there any other reasons for this error?
İf it is related to smalll "c" letter how can I fix that?

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class Last : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
    Debug.Log("Hi")
}

// Update is called once per frame
void Update()
{
    
}
}

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

小霸王臭丫头 2025-02-20 21:43:10

尝试以这种方式写下您的路径,

“ C:\ Users \ Umut \ desktop \ projects \ endless2 \ Assets \ last”

如果未解决,请分享您的代码的屏幕截图。

Try to write your path in this way,

"C:\Users\UMUT\Desktop\Projects\Endless2\Assets\Last"

if not resolved then please share screenshot of your code.

独﹏钓一江月 2025-02-20 21:43:10

这不是您的代码错误,
这是您的项目问题。尝试保存所有代码或制作另一个项目,然后再次将此代码复制到带有不同名称的新项目,然后尝试运行。这将解决您的问题。

this is not your code error,
this is your project issue. Try to save all code or make another project and copy this code again to a new project with a different name and try to run. This will solve your problem hope so.

寻找我们的幸福 2025-02-20 21:43:10

将Visual Studio代码的设置重置为默认设置可以为我修复它。

Resetting Visual Studio Code's settings to default was able to fix it for me.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文