Does SceneSerializer serialize stuff like observables?

I’m pretty sure the answer to this is no - but wanted to double check here.

When serializing scenes that contain observables (e.g. observable on camera’s viewmatrixchange) such as this one https://playground.babylonjs.com/#1AGCWP#83 the serialized / exported babylon file does not seem to contain any data about the observable.

Is this intended?

I’d imagine that a serialized “scene” would also serialize all its children and constituent variables such as activecamera, etc.

I don’t think that possible as it’s code/ callback and not data. I think @carolhmj is more experienced with serializers than I am :slight_smile:

That is correct, observables are not serialized with a scene.

1 Like