几天前从字面上开始学习编码只是在看视频但是当我尝试在我的对象上添加一个用于玩家移动的脚本时出现错误
这是在统一引擎上,我还没有尝试太多,因为我不知道从哪里开始
Win32Exception: 系统找不到指定的文件。
System.Diagnostics.Process.StartWithShellExecuteEx (System.Diagnostics.ProcessStartInfo startInfo) (at <735c83e43c004ee998f77c68cf8035da>:0) System.Diagnostics.Process.Start () (at <735c83e43c004ee998f77c68cf8035da>:0) (wrapper remoting-invoke) System.Diagnostics.Process.Start() UnityEditor.DefaultExternalCodeEditor.OpenProject(System.String 路径,System.Int32 行,System.Int32 列)(在 C:/buildslave/unity/build/Editor/Mono/CodeEditor/DefaultExternalCodeEditor.cs :136) Unity.CodeEditor.CodeEditor.OpenProject(System.String 路径,System.Int32 行,System.Int32 列)(在 C:/buildslave/unity/build/Editor/Mono/CodeEditor/CodeEditor.cs:31)
我放入视觉工作室的代码是
using UnityEngine;
public class Playermovement : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Debug.Log("Hello. world");
}
// Update is called once per frame
void Update()
{
}
}
我只是期待在控制台上写“Hello.world”