Open gearcoded opened 4 years ago
okay i just had the same problem and resolved it. it's not linux-specific. i tried on windows and linux. the clue was at the bottom of the instructions, but it's a little more nuanced than that.
Currently only handles entity updates that have defined IDs:
<a-entity id="updateMe"></a-entity>
if you don't have an id in the original .html file it won't save anything (but you can still copy-paste the HTML of course). if you create a new object in the inspector, and manually add an id in the id field in the inspector it will not save - only works on existing objects in the file. if you edit an existing object that didn't have an id field, by adding one in in the inspector, it will not save.
I hope there is a button "Export" that shows the text of the scene in an text box. Then I can copy it to clipboard and paste to my html. Then I don't need to install the watcher and Node.js. Oh, I realized I can write this function myself!
You can do that already, select a-scene and click on the copy to clipboard button.
Hello, I noticed that if I create a new entity in the inspector and try to save it with the aframe-watcher, the changes are not saved. If I update an existing entity with the ID, it works correctly. Here is the video: https://ufile.io/48muzkg4 And here is a small file where I tested that: https://ufile.io/tqrbj3fc