This is Dropdown.cs now:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class Dropdown : MonoBehaviour
{
[SerializeField] TMP_Dropdown dropDownObject;
TMP_Text dropDownValue;
void OnValueChanged()
{
dropDownValue = dropDownObject.captionText;
}
}
And this is the screenshot of the Inspector window when the TMP_Dropdown object is selected.


I'll try this, thanks