【问题标题】:My code isn't coloured and my intellisense isn't working properly我的代码没有着色,我的智能感知工作不正常
【发布时间】:2021-01-28 06:42:20
【问题描述】:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class player : MonoBehaviour
{
    // Start is called before the first frame update
    void Start()
    {
        
    }

    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space)) ;

    }
}

在代码的 void update 部分中,我的代码只是白色,并且没有像我正在观看的教程中那样采用不同的颜色,而且我的 IntelliSense 并未建议我在 UNITY 中使用此类方法如GetKeyDown,KeyCode等。我使用Visual Studio 2019的社区版。我尝试更新Visual Studio,但没有任何变化。 Visual Studio显示代码也需要很长时间,一开始只显示一个空白屏幕,然后等待几分钟后显示代码

【问题讨论】:

    标签: c# unity3d visual-studio-2019


    【解决方案1】:

    尝试将 Visual Studio 设置为您的统一代码编辑器。

    Edit->Preferences->External Tools 并在下拉菜单中设置visual studio。

    【讨论】:

      猜你喜欢
      • 2018-10-27
      • 1970-01-01
      • 1970-01-01
      • 2021-09-01
      • 2018-09-18
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多