registerBuiltinComponentCodecs function
Registers the component codecs the format ships with (mesh, directional
light, camera) into registry.
Implementation
void registerBuiltinComponentCodecs(FsceneComponentRegistry registry) {
registry
// Registered before the mesh codec so serialize claims a particle emitter
// (which subclasses the mesh component) before the mesh codec sees it.
..register(ParticleEmitterCodec())
..register(MeshCodec())
..register(MaterialsVariantsCodec())
..register(DirectionalLightCodec())
..register(PointLightCodec())
..register(SpotLightCodec())
..register(CameraCodec())
..register(EnvironmentVolumeCodec())
..register(AudioSourceCodec())
..register(AudioListenerCodec());
}