godot-cpp icon indicating copy to clipboard operation
godot-cpp copied to clipboard

Add ADD_ARRAY_COUNT

Open scriptsengineer opened this issue 3 years ago • 2 comments

Place ADD_ARRAY_COUNT to be able to place typed vector structures in the inspector, such as Curve3D points.

#define ADD_ARRAY_COUNT(m_label, m_count_property, m_count_property_setter, m_count_property_getter, m_prefix) ClassDB::add_property_array_count(get_class_static(), m_label, m_count_property, _scs_create(m_count_property_setter), _scs_create(m_count_property_getter), m_prefix)

scriptsengineer avatar Jan 02 '23 13:01 scriptsengineer

@scriptsengineer Is this for Godot 4.0 (GDExtension) or 3.x (GDNative)?

Calinou avatar May 23 '23 13:05 Calinou

It was in godot 4.0-beta9 commit 02336831735fd6affbe0a6fa252ec98d3e78120c

scriptsengineer avatar May 23 '23 15:05 scriptsengineer