Skip to content

Initial prototype for prefabs-dpe integration#476

Draft
srikappa-amzn wants to merge 8 commits into
developmentfrom
srikappa/Overrides/DpeIntegrationPrototype
Draft

Initial prototype for prefabs-dpe integration#476
srikappa-amzn wants to merge 8 commits into
developmentfrom
srikappa/Overrides/DpeIntegrationPrototype

Conversation

@srikappa-amzn

@srikappa-amzn srikappa-amzn commented Dec 2, 2022

Copy link
Copy Markdown
Collaborator

Idea is simple:

  1. If non-opaque value, simply convert AZ::Dom::Value to PrefabDomValue
  2. If opaque value, get its void* and serialize the value
  3. In either of the above cases, modify dpe-dompath to prefab-dompath by reading in the 'SerializedPath' information stored in property editor nodes

The crux of the logic is in GeneratePropertyEditPatch() which stops at producing rapidjson patches to be used by the prefab system. This code doesn't yet use these patches. But I've validated that the patches generated are valid manually. I've tested it with a few components (the ones under Atom default environment that comes with every level) and so far it seems to hold its ground and produce valid patches with all those components

Signed-off-by: srikappa-amzn 82230713+srikappa-amzn@users.noreply.github.com

Idea is simple:
1. If non-opaque value, simply convert AZ::Dom::Value to PrefabDomValue
2. If opaque value, get its void* and serialize the value
3. In either of the above cases, modify dpe-dompath to prefab-dompath by
   reading in the 'SerializedPath' information stored in property editor
   nodes

Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
…g them as opaque values

Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
…otype

Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
…otype

Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
Signed-off-by: srikappa-amzn <82230713+srikappa-amzn@users.noreply.github.com>
antonmic added a commit that referenced this pull request Jun 15, 2023
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

Successfully merging this pull request may close these issues.

1 participant