Why can't I see my variable in the inspector?

Godot Version

4.2.2 Stable

Question

I’m trying to create a multi item database and using variables is apparently an easy way to call on item id’s but mine isn’t showing up. I followed a tutorial to get to this point, where I should be able to type an item name into the inspector but there’s no variable to add on to.

You’re viewing the script file in the inspector, you need to attach this script to a Node3D, and then you can see your variable as you select that node.

Like coderjo mentioned, you are currently inspecting the “Pickup.gd” script file, switch to 2D or 3D mode, and click the Node where this script is being applied