How to view variables from a script stored inside another script in Inspector

I’m creating an inventory system. I’m storing ItemData inside a different script for GameObject Items. Is there a way to view the variables from the stored ItemData inside the inspector?

public class Item : MonoBehaviour {
	bool highlighted = false;
	float pickupRange = 3;
	Inventory player;
	ItemData myData;

Put this infront of your class.