简体   繁体   English

Visual Studio 未显示统一功能

[英]Visual studio not showing unity function

I am novice to unity learning and while writing transform.position VS not showing any function of unity.我是统一学习的新手,在编写 transform.position VS 时没有显示任何统一功能。 my code is我的代码是

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
    }
}

Try to set your external tool editor in unity apps from menu Edit/Preferences/Exernal Tools, in my case as default it set to visual studio 2010 when im using VS 2019 that make it open as selector version and unity function is unknow by VS.尝试从菜单编辑/首选项/外部工具在统一应用程序中设置您的外部工具编辑器,在我的情况下,当我使用 VS 2019 时,它默认设置为 Visual Studio 2010,使其作为选择器版本打开,并且 VS 不知道统一功能。 So i change that to VS 2019, and that show the unity function.所以我将其更改为 VS 2019,并显示了统一功能。

要使用 Unity 进行智能感知,您需要将 Visual Studio Tools for Unity 插件安装到您的 Visual Studio 中。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM