The Godot Q&A is currently undergoing maintenance!

Your ability to ask and answer questions is temporarily disabled. You can browse existing threads in read-only mode.

We are working on bringing this community platform back to its full functionality, stay tuned for updates.

godotengine.org | Twitter

+1 vote

I think i understand this, but i don't understand how the property listed and the variable that's supposed to store it are to connect. is there a way for the editor to know that the property entry named "first" should be stored in the variable named first?

EDIT: figured it out. related to the answer i'm replying to, the usage variable is meant to store enumerations that dictate the function of the property entry.

PROPERTYUSAGEEDITOR - makes the property visible in the editor. however, that's all it does.

PROPERTYUSAGESTORAGE - Tells the editor to save the value to the scene file.

PROPERTYUSAGESCRIPT_VARIABLE - does the same thing as storage? i think?

I can't tell the difference between the storage and script variable enums and what that means for how i should access the values in the game code after they are set in the editor. storage seems to work fine in my code, but script variable doesn't, so i know i must not understand what is actually happening to those values.

Godot version 3.4
related to an answer for: Script Categories help.
in Engine by (65 points)

Please log in or register to answer this question.

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.