i completed a game but i miss big part bc of using.UnityEnginge.UI not working
i dont have access to use: using UnityEngine.UI; using UnityEngine.Eventsystems;
ill show u this example
using UnityEngine;
using UnityEngine.UI;
public class MoneyUI : MonoBehaviour
{
//public Text moneyText;
void Update()
{
moneyText.text = "$" + PlayerStats.Money.ToString();
}
}
can anyone help me to fix this huge problem i dont have any access to Unity.UI
The only problem I see with this code is that the moneyText variable is commented out, can you post the error you get?
no this code is just example the main problem is i just cant use UnityEngine.UI;
Answer by Reaperonlinee · Nov 25, 2021 at 04:31 PM
so i asked a developer and helped me with this issue ill post the answer so if u have this problem just read this
Do you use Visual Studio Code?
If so, please follow the instruction on this website and make sure all required extensions are installed: https://code.visualstudio.com/docs/other/unity
If the issue persists, please check the console of VS Code (not Unity!). If the .NET Framework 4.7.1 (Developer Pack) is mentioned there, download and install it from the official Microsoft. Here is the link: https://dotnet.microsoft.com/download/dotnet-framework/net471
Depending on your version of Unity, it might be that you will have to install the "Visual Studio Code Editor" package in Window > Package Manager in Unity.
NOTE: you'll have to reboot your computer. Then launch Unity again and open one of your scripts.
Your answer
Follow this Question
Related Questions
Subtle Motion Jitter Using Unity Animator 0 Answers
Unity UI extended components, other script cannot get the reference of these component? 0 Answers
Stop previous coroutine and start new one from beginning 1 Answer
Not able to add Sprite in the Inspector. 0 Answers
Error with Unity slider fill 0 Answers