defold / extension-simpledata

Example how to bring custom data to a game object
MIT License
9 stars 2 forks source link

Need a way to define simple data names and its types from editor #8

Open VikSin opened 6 months ago

VikSin commented 6 months ago

Currenty I have to make changes in project code for pre define data names and it's type for producing simple data component with those data names. If I have to add new entries then I have to again edit project code. Also there is no way to create simpledata component with different set of data names.

What's the problem? Let's say if someone using this in production for big project and in middle they need to define more data names then they have to make change in code and add updated extension as depencecy in editor to build to get new component with new data names. If in game they have already created lots of game objects with previous simpledata component they have to replace previous component with updated component.(I have no clue on this if previous embeded simpledata component will update with new data names automatically or not. If not then there is lots of manual work needed in replacing old simpledata component with new one)

Their is need a way to define simpledata data names from editor and expose those data names field in simpledata component. Just like go propery has in script component.

I realy like this extension project. And it's really suitable for projects with lots of objects which need to define behaviours where we can't add script to every object due to 1024 script limits.

Idea -

Maybe a way create multiple files to define attributes(data names) and it's type SimpleData Attributes SimpleData Attributes-1

Another file to attach all multiple files that define attributes SimpleData Set

And last after building project when we create simple data component there is need a way to which set of simpledata to use , exposing attribute field based on those set - SimpleData Frame 828

britzl commented 6 months ago

We do have plans for a much more dynamic data component type to be part of the core of Defold. I'm not sure when this will happen in the Defold core, but we will not expand this example component to support these things.