【发布时间】:2019-07-22 12:23:31
【问题描述】:
我已经安装了 Unity、VS-2019、Net4.x。
毕竟,当我写“Rig...”时,Intellisense 知道我的意思是 RigidBody,但它不会像 OnTriggerExit() 甚至 Start() 和 Update() 这样的自动完成方法。 如何启用它?
我在 unity 首选项 net4.x 中指定了 VS 可执行文件,并多次重新加载了 unity 和 VS。
public class SomeScript : MonoBehaviour
{
private Rigidbody rb;
void Start ()
{
this.rb = GetComponent<Rigidbody>();
//this line autocompleted well
}
void OnTrigger... // doesn't autocomplete
}
【问题讨论】:
-
您使用的是哪个 Unity 版本? VS2019 不完全支持某些旧版本
标签: c# visual-studio unity3d intellisense code-snippets