UE5 Time of Day Blueprint System
This page is part of the documentaiton for my UE5 Time of Day Blueprint System

Example: Sound Switch

UE5 Time of Day Blueprint System Version: 2.0

    The ambient sound switch, BP_TimeOfDay_SoundSwitch, in the Blueprints/Utilities/ folder can be used if you would like to toggle between different ambient sounds in your level at different times of the day. For example you might want the sounds of birds during the day, and the sounds of crickets at night.

    To use the ambient sound switch drop a copy of the BP_TimeOfDay_SoundSwitch blueprint into your level along with your ambient sounds, then configure the switch from the details panel in the viewport.

    Configure the Ambient Sound Switch

    SwitchType Set this to how you would like the Ambient Sound switch to work, either Time of Day or more specific like between a fixed window of time.
    FadeDuration This is the number of seconds you would like to fade the sound in or out when the switch occurs.
    TimeOfDaySounds Use this variable to define which sounds are played if your SwitchType is “Time of Day”. The key is the time of day, and the value is a reference to the ambient sound you would like to play in your level.
    FixedTimeAmbientSounds Use this variable to define which sounds are played if your SwitchType is set to “Fixed Time”. The key is the ambient sound in your level that you would like to play, and the value is a schedule structure which lets you define the start and end point of the time window that it should be played.
    In the previous version we had to manually disable each of our ambient sounds. In this new version the ambient sound switch blueprint will do this for us on its begin play.

    Included Sounds

    You will find 4 ambient sounds included in this asset.

    Seagulls SFX https://www.youtube.com/watch?v=_OdfxYjvPlE

    Cricket SFX https://www.youtube.com/watch?v=Q2YlGq-30nE

    Evening Anthem Created by Dynomega (using Garage Band).

    Morning Anthem Created by Dynomega (using Garage Band).

    This documentation and asset version are new. If you encounter any bugs or if anything doesn't make sense, please let me know.