So a couple of days ago, I installed vscode for working with the Unity game engine scripts, however, even though I installed the C# extension, it won't show the arguments for each function, for example, if I write an AddForce()
function, vscode doesn't show what kind of arguments should I put inside the parenthesis. How can I get it to do so?
Say, it won't show the arguments for AddForce()
in this code I wrote:
using UnityEngine;
public class NewBehaviourScript : MonoBehaviour
{
public Rigidbody rb; //References the player's Rigid Body component as "rb"
void Update()
{
rb.AddForce();
}
}
Also, vscode shows this error whenever I load a script from my Unity project: