Help with IDE

I don’t know what the problem could be, but my CoordinatesLabeler script doesnt recognize other scripts and doesnt get colors right, in other scripts the attributes are green but in this one they are plain white. What the problem could be? Even this simple code doesnt get my [ExecuteAlways] in green like it should be

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using UnityEditor;
using UnityEditor.Experimental.SceneManagement;


[ExecuteAlways]

public class CoordinatesLabeler : MonoBehaviour
{
   
}

Meanwhile, Node does get the colors right

using System.Collections;
using System.Collections.Generic;
using UnityEngine;

[System.Serializable]
public class Node
{
    public Vector2Int coordinates;
    public bool isWalkable;
    public bool isExplored;
    public bool isPath;
    public Node connectedTo;

    public Node(Vector2Int coordinates, bool isWalkable)
    {
        this.coordinates = coordinates;
        this.isWalkable = isWalkable;
    }
}

Hi Victor,

Maybe there is a problem with Visual Studio Code.

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 website. 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.

In Unity (Edit > Preferences > External Tools), you could also try to click “Regenerate project files” if that button is available.

Did this help?


See also:

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms