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.

  • Well, you might also want to attach the code to your question? :) - RiotBr3aker
  • Is this exactly the whole code? And the error text is not complete. - RiotBr3aker
  • Did you try to ignore what the studio is writing and run it in a unit? I don’t know how it is now (there is some kind of integration with the studio there), but earlier the unit used its compiler and the studio often showed errors when everything compiled and worked in the unit itself. (And, by the way. You do not need to compile anything in the studio, just save the code and run your game in the editor) - selya
  • Ignoring works . Just wondering if you should pay attention to this problem - Veudd
  • No .. Not worth it. - Suvitruf

0