Skip to content

Instantly share code, notes, and snippets.

@DeerTears
Created January 11, 2021 05:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save DeerTears/06587cee069e204abdd97a75cf04d7fa to your computer and use it in GitHub Desktop.
Save DeerTears/06587cee069e204abdd97a75cf04d7fa to your computer and use it in GitHub Desktop.
# https://docs.godotengine.org/en/stable/classes/class_@globalscope.html#enum-globalscope-propertyusageflags
PROPERTY_USAGE_GROUP = 128
#Used to group properties together in the editor.
PROPERTY_USAGE_CATEGORY = 256
# Used to categorize properties together in the editor.
PROPERTY_HINT_EXP_EASING = 4
# Hints that a float property should be edited via an exponential easing function. The hint string can include "attenuation" to flip the curve horizontally and/or "inout" to also include in/out easing.
# I can find these hints in the property list when I do
print(get_property_list())
# It makes sense, this is just how Godot saves all these properties on the lower level, and they look like they're done right for my custom container node. I just wonder if there's any way to group these properties by adjusting the return value of the property list?
# Do I need to try adding more export hints other than just...
export (float, 0.0, 1.0, 0.001) var horizontal_margin = 1.0 setget _edit_horizontal_margin
# ?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment