Traffic vehicle is using same audio for all vehicles (despite different setup for each vehicle)

Summary

Mass vehicles are using same AudioController for all simulated vehicles, despite setting up different values in WorldAudioData trait in vehicle’s MassEntityConfigAsset.

What Type of Bug are you experiencing?

Audio

Steps to Reproduce

  1. Open ‘CitySample’ project.
  2. Open MassCrowd map.
  3. Play the level.
  4. Show debug audio sources: au.3dVisualize.Enabled 1
  5. Walk up to two different vehicles.

Expected Result

Each vehicle should use audio their own config (MassEntityConfigAsset → WorldAudioData Trait).
For example: vehCar_vehicle03_TrafficVehicleAgentConfig should use “Sedan” AudioController,
and vehCar_vehicle02_TrafficVehicleAgentConfig should use “Hatchback” AudioController.

Observed Result

In my case, all vehicles used “Hatchback” AudioController (Audio file: sfx_NPC_VehEngine_Hatchback_Meta).

Affects Versions

5.7

Platform(s)

Windows

Upload an image

Additional Notes

Probably this issue is caused by missing UPROPERTY() in the FWorldAudioDataAudioControllerParameters MassConstSharedFragment (in WorldAudioMassEntityTrait.h).
Because of missing UPROPERTY(), EntityManager can’t distinguish between FWorldAudioDataAudioControllerParameters with different AudioControllers (FName).