This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
+3 votes

Can I add hints for exported variables in the inspector?

in Engine by (519 points)

Why would you do that? You make exported variables in script. I don't see why you'd want to change it while not in the script editor, when you can already do that in the script.

What do you mean with "change it while now in the script editor". Or you miss understood what I meant with hints? I would like to add these hints that show up when you hover the variable. And I would like to do that because I have a few exported variables that interact with each other and I would like to put a reminder on that using hints, if possible.

Ah! I did misunderstand. I thought you meant the kind of hints you use when deciding how to edit the variable in the inspector.

2 Answers

+4 votes
Best answer

Welp. Hate to break it to you, but it seems that this feature doesn't exist yet. It was talked about 2 years ago in this issue.

by (3,938 points)
selected by
0 votes

You can indicate the variable type when declaring the variable. For example if you indicate a var is a "Color", you'll get a picker in the editor. Not sure when this feature came about or if it suits your version though.

GDScript Exports

by (384 points)

He meant a tool tip (Text that appears when you hover over a property in the inspector).

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.