I'm writing the code but the editor doesn't detect it. I looked in many places but could not solve the problem."Rigidbody" does not turn blue. Thank you in advance for your help.
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KarakterKontrol : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
Rigidbody fizik = GetComponent<Rigidbody>();
}
// Update is called once per frame
void Update()
{
}
}
I took a quick look at what "Diger dosyalar" meant.. which roughly translates to "Other Files", or in the English version of Visual Studio, Miscellaneous Files.
What that means is that your Visual Studio is not properly synced with Unity. You're seeing just a plain old C# file by itself, not a file that is associated with a Project.
The steps to rectify are usually:
9 times out of 10, that will resolve your issue.