Skip to content

Editor Array subhints fix

Created by: lonegamedev

F.e restrict Array's editor UI to allow only NodePaths of RigidBody type.

I think hint_string syntax was supposed to be:

(VARIANT_ID_INT):[(HINT_ID_INT)/(HINT_STRING)] the section after colon is optional

but it's hard to figure out without any docs, and broken string parser.

Use Example:

ADD_PROPERTY(PropertyInfo(Variant::ARRAY, "hints_array", PROPERTY_HINT_NONE, itos(Variant::NODE_PATH)+":"+itos(PROPERTY_HINT_NODE_PATH_VALID_TYPES)+"/RigidBody"), "set_hints", "get_hints");

Merge request reports

Loading