Hello,
Thanks for the reply.
We want to achieve that whichever file is opened in Home Designer scene it will be auto opened in floorPlanEditor scene when we switch from Home designer to FloorPlan Editor.In opposite to this when we make any changes in floorPlanEditor and switch back to HomeDesigner scene it must reflect the changes done in floorPlanEditor.
So for this we try to achieve this from the concept of temporary folders. We have created two folder at runtime named as “Temporary Floor Maps” and “Temporary Interior maps”, these file contains *.json file of interior and floor map.
When we open any default maps like ”3-BHK” or “5BHK”, we duplicate the default map and store it in the temporary floor map and deserialize it to the home designer scene.
When we switch from home designer to Floor map editor, we intend to open the current temporary Floormap, and also serialize this scene to json in temporary Interio Map folder and change its floormap to the temporary floormap which was created upon opening the scene. After this if we make some changes
Case1 - If we Save the file from menu, this temporary file will be saved in the Floormap folder and upon moving to Home designer this newly saved file will be deserialized int the scene, and this works fine.
Case2 - If we do not save the scene and move to Home designer scene, all the changes in this scene if saved in Temporary floormap json and that is loaded in the home designer scene.
Issue: -
In case 2 when saving the scene a new floor is added whose uniqueID and Space is null, which when deserialized does not load the scene.
Eg Script -
Before saving
"version": "v2",
"floors": [
{
"uniqueId": "ed92ec2e-4900-4038-acef-af8b9bd6c6a4",
"spaces": [ { Some Data }]
}
After Saving
"version": "v2",
"floors": [
{
"uniqueId": null,
"spaces": null
},
{
"uniqueId": "ed92ec2e-4900-4038-acef-af8b9bd6c6a4",
"spaces": [
{Some Data}]
}
Thanks