I create herbs with sprites and wanted to serialize the whole spriteManager.
I added a specific id and a metadata.
But when I serialize, the id and metadata is not serialized
The uniqueID that exists is also not serialized.
Would it be possible to add an id and metadata to the SpriteManager and that can be serialized ?
My PG of test : https://www.babylonjs-playground.com/#YCY2IL#1159
Thanks in advance.
sprite manager does not have id but only name and no metadata at the moment.
I am not opposed to a PR adding them
I don’t know how to do this PR.
Metadata will be in with Add Sprite Manager Metadata by sebavan · Pull Request #13259 · BabylonJS/Babylon.js · GitHub And I think you could place your id in those so no need to bloat the current class with more if not used broadly within the framework
Yes I will be able to put the id in the metadata.
Thank you very much sebavan