I just wanted to write code for Unity
But there was a problem and this is what VisualStudio tells me:
Could not resolve the main link "UnityEditor.Graphs" because it is indirectly dependent on the build system "System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a", which cannot be resolved in the current target platform. ".NETFramework, Version = v3.5, Profile = Unity Subset v3.5". To fix this problem, delete the "UnityEditor.Graphs" link, or change the target application platform to a version that contains "System.Web, Version = 2.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a". Unity.TextMeshPro
Code
using System.Collections; using System.Collections.Generic; using UnityEngine; public class NewBehaviourScript : MonoBehaviour { public float verticalImpulse; Rigidbody2D rb; // Use this for initialization void Start () { rb = GetComponent<Rigidbody2D>(); } // Update is called once per frame void Update () { } void FixedUpdate() { if (Input.GetKeyDown(KeyCode.Space)) { rb.AddForce(new Vector2(0, verticalImpulse), ForceMode2D.Impulse); } } } such errors appear
CS2001 Could not find the source file "C: \ Users \ Gaming PC \ Documents \ Platformer \ Packages \ com.unity.textmeshpro \ Scripts \ Runtime \ TMP_TextInfo.cs".
CS2001 Could not find the source file "C: \ Users \ Gaming PC \ Documents \ Platformer \ Packages \ com.unity.textmeshpro \ Scripts \ Runtime \ FastAction.cs".There are 45 of them.