-
Notifications
You must be signed in to change notification settings - Fork 266
feat: Add context menu item to export scene and nodes #604
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
base: master
Are you sure you want to change the base?
Conversation
a551501 to
c311ff7
Compare
|
In order to prepare prefabs, I suggest that a portion of the scene should be exporable via a right-click on a node in the graph. Instead of the entire scene |
|
@julien-moreau that's a really good idea. I will modify this PR. |
|
For the full scene export, it can be in the right-click menu of the scene node |
c311ff7 to
e376f7d
Compare
0cc3e75 to
616af57
Compare
|
@julien-moreau Updated! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I thinking about assets, I forgot last time.
What is the usage if the assets (textures assigned to materials for meshes for example) are not exported. The .babylon is kind of corrupted as it'll try to load assets not available near it.
That's true! Or do you think when importing a .babylon file we could strip the assets from the file and import as separate assets? We can also let the .babylon "prefab" break and let the user assign a different material. |
|
I just fixed an issue in the editor when importing meshes: the process that extracts textures in case they were embeded. I was think about prefabs and it'll require some huge work finally. I think this PR can be the "export as babylon" feature. It does only that. In the future we'll create kind of a "create prefab" menu that will manage way more things (such as prefab Ids to retrieve resources if they already exist etc.). |
|
@julien-moreau that's great, then I will rebase and fix the comments somewhere this weekend. For me that would be more than enough to use as prefabs while we don't have the proper feature. Thanks for reviewing and the suggestions |
I totally agree! We'll just not call it prefab for instance ^^ |
|
@julien-moreau |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I take it for the next release (as I'm releasing today some fixes). I'll probably merge it and rework it if needed. Thanks for the good base you provided!
|
@julien-moreau whoa! Thank you so much for reviewing. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm sorry, I took sprites support instead which took me more time than I have anticipated
I'll focus on this one after ^^
20fec67 to
23d6edc
Compare
23d6edc to
00534a7
Compare
|
This would be huge for composing scenes or parts of scenes and then loading them into a Babylon app that's written "manually" outside the editor. Hope it lands soon! |
Totally agree! I'm reviewing it ASAP |
|
@julien-moreau, yes, please go ahead :) Feel free to change if something can be better. |
Title
Export scene as .babylon
Summary
Export the current scene as a .babylon file
Changes Made
Added export scene (.babylonjs)
Benefits
Screencast.From.2025-09-01.19-26-04.mp4
Closes #601