Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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
    }
}
like image 916
Ahmed Hassan Avatar asked Feb 04 '26 07:02

Ahmed Hassan


1 Answers

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.

like image 70
Heru Kurniawan Avatar answered Feb 05 '26 19:02

Heru Kurniawan