Closed wumaolinmaoan closed 2 months ago
The updates primarily involve enhancing the effects-core
package by upgrading the @galacean/effects-specification
dependency version and introducing a new miscs
array to handle miscellaneous data. These changes affect the Engine
class, a migration function, and a loader implementation. The modifications ensure better data handling and future-proofing of the codebase.
Files | Change Summary |
---|---|
packages/effects-core/package.json |
Updated @galacean/effects-specification version from "2.0.0-alpha.17" to "2.0.0-alpha.18". |
packages/effects-core/src/engine.ts |
Added miscs array to jsonScene and loop to process miscs data by calling addEffectsObjectData . |
packages/effects-core/src/fallback/migration.ts |
Modified migration function to populate miscs array instead of animations for various data types. |
plugin-packages/model/src/gltf/loader-ecs.ts |
Added an empty miscs array to the object returned by a method in LoaderECSImpl class. |
sequenceDiagram
participant Engine
participant JSONScene
participant EffectsObject
Engine->>JSONScene: Parse jsonScene
JSONScene-->>Engine: Return miscs array
loop Process each misc
Engine->>EffectsObject: addEffectsObjectData(misc)
end
In the code's enchanted core, Miscellaneous wonders soar, With updates bright and specs anew, The engine's heart beats strong and true. 🎉✨
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Summary by CodeRabbit
New Features
Bug Fixes
Chores
@galacean/effects-specification
to improve compatibility and performance.