Visual studio not showing unity function

Ahm*_*san 2 c# unity-game-engine

我是统一学习的新手,在编写 transform.position VS 时没有显示任何统一功能。我的代码是

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class SphereController : MonoBehaviour 
{
    public float control;

    // Use this for initialization
    void Start () 
    {
    }

    // Update is called once per frame
    void Update () 
    {
       //while i try to write transform.position below this comment no function is showing
    }
}
Run Code Online (Sandbox Code Playgroud)

小智 5

尝试从菜单编辑/首选项/外部工具在统一应用程序中设置您的外部工具编辑器,在我的情况下,当我使用 VS 2019 时,它默认设置为 Visual Studio 2010,使其作为选择器版本打开,并且 VS 不知道统一功能。所以我将其更改为 VS 2019,并显示了统一功能。