defold / defold/extension-simpledata

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

Open
#8 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
12
Forks
3
PR merge metrics
No merged PRs in 30d

Description

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](https://github.com/defold/extension-simpledata/assets/25245765/bc01e27e-a84a-4001-8220-7a5bf2cd3f51)
![SimpleData Attributes-1](https://github.com/defold/extension-simpledata/assets/25245765/3c4cdd17-d52a-49ca-8f0f-3178a16e40be)

Another file to attach all multiple files that define attributes
![SimpleData Set](https://github.com/defold/extension-simpledata/assets/25245765/84a3961d-4a96-4f07-92c4-c9e8189286a9)

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](https://github.com/defold/extension-simpledata/assets/25245765/dc1dd1ac-c1eb-4011-b92f-0fa258e5f28a)
![Frame 828](https://github.com/defold/extension-simpledata/assets/25245765/9ea4dcdc-9f22-4e5e-b66d-fbbc9066f9e3)

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.