【发布时间】: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