-1

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()
{
    
}
}
1
  • Windows is not case sensitive. So c: or C: won’t matter. Commented Jul 6, 2022 at 10:52

3 Answers 3

0

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.

Sign up to request clarification or add additional context in comments.

1 Comment

How can I write it like that I tried to debug but it makes C smaller.
0

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.

1 Comment

@Zafer Habib I am still getting same error. But thanks for help. If you have any other idea please share.
0

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.