-
-
Notifications
You must be signed in to change notification settings - Fork 21k
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
Add support for scene/resource customization in export plugins #65135
Add support for scene/resource customization in export plugins #65135
Conversation
92ea01b
to
d6317d1
Compare
d6317d1
to
c91072b
Compare
9745534
to
bfc8a7f
Compare
This should be good now (tested it locally). |
bfc8a7f
to
c20f54b
Compare
EditorExportPlugin adds a set of callbacks to allow customizing scenes, resources or subresources in all files exported: * Can take scene files, resource files and subresources in all of them. * Uses a cache for the converted files if nothing changes, so this work only happens if a file is modified. * Uses hashing to differentiate export configuration caches. * Removed the previous conversion code to binary, as this one uses existing stuff. This API is useful in several scenarios: * Needed by the "server" export platform to get rid of textures, meshes, audio, etc. * Needed by text to binary converters. * Needed by eventual optimizations such as shader precompiling on export, mesh merging and optimization, etc. This is a draft, feedback is very welcome.
c20f54b
to
ef17c46
Compare
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.
Looks good to me.
Thanks! |
This causes #56343 for all scene preloads. |
Will this be backported to 3.x? |
This relies on a lot of core refactoring done in 4.0 (most of which is backwards-incompatible), so no. This would need to be redone from scratch by a motivated contributor, and even then, it's not guaranteed to be merged for 3.6. |
EditorExportPlugin adds a set of callbacks to allow customizing scenes, resources or subresources in all files exported:
This API is useful in several scenarios:
Obligatory screenshot of API:
This is a draft, feedback is very welcome.. Should be ready for review now.