Hello,
I Created two temporary folder one for TemporaryfloorMap and other for temporary Interiors, When I try to save Temporary Floor map and extra floor is added in which both uniqueId and spaces are null, when I try to Serialize this floormap in interior scene, my scene is not loaded.

Thanks.

    RandhirP Hi!
    Can you explain what do you mean by temporary folder? Can you maybe record a screen video of what you are trying to do?
    thanks

      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

        Yes I also want to implement similar functionality in the project please let us know how we can achieve it?

          Anand probably because you work together 😃

          I don't know why an empty Floor is created but I can investigate that, or add some code to trim empty floors in the saving method. What do you think?

            Hello,
            Thank you for your response.

            I appreciate your insights. Could you please prioritise the resolution of this issue as soon as possible? Your assistance in solving this matter promptly would be highly valued.

            I am also actively working on this issue, will let you know if it works.

            Thanks again

              RandhirP Hi,
              I can't repro the bug on my side where an empty floor is created with null values, but I added a few lines to trim the floormap file when loaded. So any floor with "uniqueId": null, "spaces": null, will be ignored.
              I will release the update on the asset store. if you want the patched file only, please send me your proof of purchase (invoice number or order id ) thanks!

                Write a Reply...