I would suggest that you start with a utility function to do this work and if it is having a negative impact on performance we’ll discuss adding it as a native engine API function. We try to keep the Defold API as small as possible. Every API function we add will add a little bit of size to the engine and we really want to keep the engine as small as possible. Not everyone would have a need for a tilemap.clear() function but everyone would be affected by the increased application size.
1 Like