-1

几天前从字面上开始学习编码只是在看视频但是当我尝试在我的对象上添加一个用于玩家移动的脚本时出现错误

这是在统一引擎上,我还没有尝试太多,因为我不知道从哪里开始

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”

4

1 回答 1

0

没有任何可用的方法,如登录 Debug 类。您只需使用 Write 和 WriteLine 、 Print 等。

Debug.Write("Hello. world");
于 2019-10-19T12:28:48.477 回答