godotengine / godot-cpp

C++ bindings for the Godot script API

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

using gdextension:register a class extend TileMap,add some layers,then delete a layers ,consle log:"editor/editor_inspector.cpp:1742 - Could not find a function to move arrays elements for class my tileMap. Register a move element function using EditorData::add_move_array_element_function"

MAXFROMCODE opened this issue · comments

Godot version

4.2.1 stable

godot-cpp version

Godot Engine v4.2.1.stable.official

System information

windows10

Issue description

a class extend TileMap can not delete layer

Steps to reproduce

1、create a gdextension class extend TileMap,register;
1709374989849
2、cereate node and add some layers ;
image
3、delete a layer,then consle will log :" editor/editor_inspector.cpp:1742 - Could not find a function to move arrays elements for class DynamicTileMap. Register a move element function using EditorData::add_move_array_element_function".
image

by the way:how to resolve this bug?
change node type to TileMap,and choose layer what you want delete,and change back to you class type

Minimal reproduction project

N/A

forget to say ! move element index is not also

i found can not do any edit operater

Thanks!

This is the same issue as described on proposal godotengine/godot-proposals#8293, which could potentially be fixed via PR godotengine/godot#84126

Please feel free to thumbs up or share your experience over there!