diff --git a/packages/dev/core/src/Meshes/mesh.ts b/packages/dev/core/src/Meshes/mesh.ts index 37707333670..434f5823c73 100644 --- a/packages/dev/core/src/Meshes/mesh.ts +++ b/packages/dev/core/src/Meshes/mesh.ts @@ -3722,6 +3722,11 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData { serializationInstance.metadata = instance.metadata; } + // Action Manager + if (instance.actionManager) { + serializationInstance.actions = instance.actionManager.serialize(instance.name); + } + serializationObject.instances.push(serializationInstance); // Animations @@ -4179,6 +4184,11 @@ export class Mesh extends AbstractMesh implements IGetSetVerticesData { Mesh._PhysicsImpostorParser(scene, instance, parsedInstance); } + // Actions + if (parsedInstance.actions !== undefined) { + instance._waitingData.actions = parsedInstance.actions; + } + // Animation if (parsedInstance.animations) { for (let animationIndex = 0; animationIndex < parsedInstance.animations.length; animationIndex++) {