Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Proposal: Add Structured data support #202

Open
aitorllj93 opened this issue Dec 26, 2022 · 2 comments
Open

Proposal: Add Structured data support #202

aitorllj93 opened this issue Dec 26, 2022 · 2 comments

Comments

@aitorllj93
Copy link
Contributor

Although perhaps outside the scope of this project, I think it would be great to support structured data as well. Depending on what you think, we have 3 options in order to do this:

  • Implement the value types and very tiny nodes to work with on the core package and a separate package/profile with some extended tools
  • Implement it as a separate package/profile inside this repository (officially supported/maintained)
  • Implement it as a separate package/profile in other repository (community maintained)

I have a working example here with some examples I was working on in the last days: behave-graph/struct I also deployed them here to test the github-actions and the docs I did for this repo, but in this case just with that specific profile

I personally would prefer the 1st or 2nd option and include it in the main repository as an optional profile, same as the Scene one but it's up to you as I don't know if this makes sense.

cc @bhouston @oveddan

@bhouston
Copy link
Owner

bhouston commented Jan 1, 2023

This is great idea. I will review in more detail in the coming days.

The plan has always been to support both JSON as well as Lists and Arrays. Now the only question is whether Lists are the same as Arrays? In Unreal Engine Blueprints, sockets specify if they are arrays and what their dimensions are:

https://docs.unrealengine.com/4.27/en-US/ProgrammingAndScripting/Blueprints/BP_HowTo/WorkingWithArrays/
https://docs.unrealengine.com/4.26/en-US/ProgrammingAndScripting/Blueprints/UserGuide/Arrays/

Also I notice that you should switch over to the "configuration" method of specifying variable input nodes instead of "logic/concat/list/2".

Interestingly, Unreal Engine blueprints do not have both lists and arrays, they only have arrays.

Here is a plugin for Unreal Engine blueprints that supports JSON: https://www.unrealengine.com/marketplace/en-US/product/json-blueprint

Here is an Unreal Engine implementation of a HTTP Fetch that returns JSON: https://github.com/GDi4K/unreal-fetch

@aitorllj93
Copy link
Contributor Author

@bhouston about array vs lists, I used list because it's the naming used by the Ramda library (doc here. Probably they using lists because they allow other kind of Iterables and not just arrays, but yes, the original javascript datatype would be array.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants