Why do objects created in a collection factory start at /collection0 and not /collection1?

Since LUA starts it’s index at 1. I’m just curious why doesn’t the factory use this same convention?

Likely because Defold is implemented in C++, and so the underlying identifiers for resources are indexed starting at 0. Lua is simply the interface that developers use to write game logic.

4 Likes