Ahmed Hassan
Ahmed Hassan

Reputation: 110

Visual studio not showing unity function

I am novice to unity learning and while writing transform.position VS not showing any function of unity. 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
    }
}

Upvotes: 2

Views: 8364

Answers (2)

Heru Kurniawan
Heru Kurniawan

Reputation: 121

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. So i change that to VS 2019, and that show the unity function.

Upvotes: 12

Logman
Logman

Reputation: 4189

To have intellisense with Unity you need to have Visual Studio Tools for Unity plugin installed into your Visual Studio.

Upvotes: 1

Related Questions