Need a hint

I know that in Unity, and probably in C # in general, there is such a trick: in the inspector, when you click on the bool variable, a list of different variables opens. This can be useful if you want to code all types of weapons in one script (this is what I need to do). I thought it was related to struct or something similar. Tell me what it might be, and yes, sorry for my bad english

That’s done with a custom editor / inspector. Here’s a thorough tutorial that’ll get you started: Unity Custom Inspectors Tutorial: Getting Started | Kodeco