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

New entities created in the inspector are not saved on Linux #8

Open
gearcoded opened this issue Feb 28, 2020 · 5 comments
Open

New entities created in the inspector are not saved on Linux #8

gearcoded opened this issue Feb 28, 2020 · 5 comments

Comments

@gearcoded
Copy link

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

@capnramses
Copy link

capnramses commented Jul 28, 2020

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.

@JohnShitMan
Copy link

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!

@vincentfretin
Copy link

You can do that already, select a-scene and click on the copy to clipboard button.

@vincentfretin
Copy link

@JohnShitMan Can you contact me on discord, my handle is also vincentfretin there. I just finished an inspector build with undo feature and copy a-scene HTML to clipboard button with lots of fixes to keep the properties order and avoid exporting injected components. I want a beta tester. ;)

@vincentfretin
Copy link

Beta testing finished. See my tweet https://x.com/vincentfretin/status/1861726540196708776

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

4 participants